292-Nim-Game
Sat 17 May 2025
https://leetcode.com/problems/nim-game
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def canWinNim(self, n: int) -> bool:
return n % 4 != 0
new Solution().canWinNim()
Score: 5
Category: leetcode