Nim Game LeetCode solution in Python
Algorithms
Python
Nim Game
1
c
l
a
s
s
Solution
:
2
def
canWinNim
(
self
,
n
:
int
)
-
>
bool
:
3
return
n
%
4
0
WPM
•
0
•
0
100%
ACC
•
0
•
0
0s
TIME
•
0