天天看点

LeetCode - 1025. 除数博弈

这是一道数学题…

多推导一下可以猜测偶数就赢~

LeetCode - 1025. 除数博弈
LeetCode - 1025. 除数博弈
/**
 * @param {number} N
 * @return {boolean}
 */
var divisorGame = function(N) {
    return N % 2 === 0;
};
           

继续阅读