Python3
Python3Mister-Hope
Mister-Hope
# Your runtime beats 90.8 % of python3 submissions
#
# Your memory usage beats 100 % of python3 submissions(14.2 MB)
class Solution:
def canWinNim(self, n: int) -> bool:
return n % 4 != 0
# Your runtime beats 90.8 % of python3 submissions
#
# Your memory usage beats 100 % of python3 submissions(14.2 MB)
class Solution:
def canWinNim(self, n: int) -> bool:
return n % 4 != 0