Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit e33df6a

Browse files
authored
Merge pull request #155 from sarthak55k/master
0292_Nim_Game
2 parents 5f2890e + d93fe48 commit e33df6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

LeetCode/0292_Nim_Game.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution:
2+
def canWinNim(self, n: int) -> bool:
3+
return (n & 0b11) != 0
4+
5+
6+
print(Solution().canWinNim(7))

0 commit comments

Comments
 (0)