1086. Divisor Game
My accepted C++ solution to LeetCode problem 1086, Divisor Game, running in 0ms.
- Difficulty: Easy
- C++
- Runtime 0ms
- Memory 7.7MB
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
C++
Accepted on LeetCode — runtime 0ms, memory 7.7MB, accepted 2025-12-27.
class Solution {
public:
bool divisorGame(int n) {
return n % 2 == 0;
}
};