Gray Code Description link Solution See Code Code 1 Complexity T : O(1) M : O(1) class Solution: def canWinNim(self, n): """ :type n: int :rtype: bool """ return n % 4 != 0