LeetCode Solutions

1025. Divisor Game

Time:

Space:

			

class Solution {
 public:
  bool divisorGame(int N) {
    return N % 2 == 0;
  }
};
			

class Solution {
  public boolean divisorGame(int N) {
    return N % 2 == 0;
  }
}
			

class Solution:
  def divisorGame(self, N: int) -> bool:
    return N % 2 == 0