LeetCode solutions

1086. Divisor Game

My accepted C++ solution to LeetCode problem 1086, Divisor Game, running in 0ms.

  • Difficulty: Easy
  • C++
  • Runtime 0ms
  • Memory 7.7MB

Read the problem on LeetCode View on GitHub

C++

Accepted on LeetCode — runtime 0ms, memory 7.7MB, accepted 2025-12-27.

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

Source