292. Nim Game
原题链接:https://leetcode.com/problems/nim-game/description/
这是一道牛逼哄哄的脑筋急转弯题目:
/**
* Created by clearbug on 2018/2/26.
*/
public class Solution {
public static void main(String[] args) {
Solution s = new Solution();
}
/**
* 这是一道脑筋急转弯题目,奈何我脑筋太笨,没解出来,参考了别人的博客
*
* @param n
* @return
*/
public boolean canWinNim(int n) {
return n % 4 != 0;
}
}