g1001_1100.s1025_divisor_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-java21 Show documentation
Show all versions of leetcode-in-java21 Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
package g1001_1100.s1025_divisor_game;
// #Easy #Dynamic_Programming #Math #Game_Theory #Brainteaser
// #2022_02_26_Time_0_ms_(100.00%)_Space_40.7_MB_(27.10%)
public class Solution {
public boolean divisorGame(int n) {
return n % 2 == 0;
}
}