Nim Game LeetCode solution in Java

1
class Solution {
2
public boolean canWinNim(int n) {
3
if (n % 4 == 0) return false;
4

5
return true;
6
}
7
}

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0