https://leetcode.com/problems/nim-game/description/
class Solution {
public:
bool canWinNim(int n) {
if(n%4==0) return false;
return true;
}
};
https://leetcode.com/problems/nim-game/description/
class Solution {
public:
bool canWinNim(int n) {
if(n%4==0) return false;
return true;
}
};