Nim Game

Problem Id: 292 Difficulty: Easy


Intuition

Solution


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