g1001_1100.s1025_divisor_game.Solution.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-kotlin Show documentation
Show all versions of leetcode-in-kotlin Show documentation
Kotlin-based LeetCode algorithm problem solutions, regularly updated
package g1001_1100.s1025_divisor_game
// #Easy #Dynamic_Programming #Math #Game_Theory #Brainteaser
// #2023_05_23_Time_114_ms_(93.33%)_Space_34.2_MB_(13.33%)
class Solution {
fun divisorGame(n: Int): Boolean {
return n % 2 == 0
}
}