g0201_0300.s0292_nim_game.Solution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
package g0201_0300.s0292_nim_game;
// #Easy #Math #Game_Theory #Brainteaser
public class Solution {
public boolean canWinNim(int n) {
return n % 4 != 0;
}
}