Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 315 Bytes

292.md

File metadata and controls

27 lines (18 loc) · 315 Bytes

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