Python | Leetcode Python题解之第292题Nim游戏

题目:

Python | Leetcode Python题解之第292题Nim游戏_第1张图片

题解:

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

你可能感兴趣的:(分享,Python,Leetcode,题解)