2025-07-29 14:38:44 +0000 UTC

Nim Game

Code

class Solution:
    def canWinNim(self, n: int) -> bool:
        return n % 4 != 0