Last active
July 31, 2020 19:09
-
-
Save lbvf50mobile/6b429c51c87c517c7e10f77a5a7de535 to your computer and use it in GitHub Desktop.
Leetcode: 1025. Divisor Game.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Leetcode: 1025. Divisor Game. | |
# https://leetcode.com/problems/divisor-game/ | |
# Runtime: 48 ms, faster than 51.35% of Ruby online submissions for Divisor Game. | |
# Memory Usage: 9.6 MB, less than 25.00% of Ruby online submissions for Divisor Game. | |
# @param {Integer} n | |
# @return {Boolean} | |
def divisor_game(n) | |
n%2 == 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment