0%

LeetCode-292

题目

结果

代码

1
2
3
4
5
class Solution {
public boolean canWinNim(int n) {
return n % 4 != 0;
}
}

复杂度

时间复杂度:O(1)

空间复杂度:O(1)