Open cjql opened 4 years ago
class Solution { public: bool divisorGame(int N) { return N%2 == 0; } };
class Solution { public boolean divisorGame(int N) { return N%2 == 0; } }
class Solution: def divisorGame(self, N: int) -> bool: return N%2 == 0
bool divisorGame(int N){ return N%2 == 0; }
public class Solution { public bool DivisorGame(int N) { return N%2 == 0; } }
/** * @param {number} N * @return {boolean} */ var divisorGame = function(N) { return N%2 == 0 };
# @param {Integer} n # @return {Boolean} def divisor_game(n) return n%2 == 0 end
class Solution { func divisorGame(_ N: Int) -> Bool { return N%2 == 0 } }
func divisorGame(N int) bool { return N%2 == 0 }
object Solution { def divisorGame(N: Int): Boolean = { return N%2 == 0 } }
class Solution { fun divisorGame(N: Int): Boolean { return N%2 == 0 } }
impl Solution { pub fn divisor_game(n: i32) -> bool { return n%2 == 0 } }
class Solution { /** * @param Integer $N * @return Boolean */ function divisorGame($N) { return $N%2 === 0; } }
C++
Java
Python
C
C
JavaScript
Ruby
Swift
Go
Scala
Kotlin
Rust
PHP