292. Nim Game 發表於 2023-02-13 | 分類於 leetcode problemsolution123456class Solution {public: bool canWinNim(int n) { return n%4!=0; }}; analysis time complexity O(1) space complexity O(1)