1025. Divisor Game ¶ Time: $O(1)$ Space: $O(1)$ C++JavaPython 1 2 3 4 5 6class Solution { public: bool divisorGame(int n) { return n % 2 == 0; } }; 1 2 3 4 5class Solution { public boolean divisorGame(int n) { return n % 2 == 0; } } 1 2 3class Solution: def divisorGame(self, n: int) -> bool: return n % 2 == 0