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
The newest version!
package g0201_0300.s0292_nim_game;
// #Easy #Math #Game_Theory #Brainteaser #2022_07_06_Time_0_ms_(100.00%)_Space_40.6_MB_(71.00%)
public class Solution {
public boolean canWinNim(int n) {
return n % 4 != 0;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy