> For the complete documentation index, see [llms.txt](https://timmybeeflin.gitbook.io/cracking-leetcode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timmybeeflin.gitbook.io/cracking-leetcode/math/1025.-divisor-game.md).

# 1025. Divisor Game

![](/files/-MkD5HwJSxltHZPUypfp)

![](/files/-MkD5KMur0J_3YvM2Cb7)

time: O(1)

space:O(1)

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

//alice first, n-x, n%x==0

/*
n=2, 

n=4
4 3 2 1
1 1 1 1
1 
*/
```
