Skip to content

Instantly share code, notes, and snippets.

@lbvf50mobile
Last active July 31, 2020 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbvf50mobile/6b429c51c87c517c7e10f77a5a7de535 to your computer and use it in GitHub Desktop.
Save lbvf50mobile/6b429c51c87c517c7e10f77a5a7de535 to your computer and use it in GitHub Desktop.
Leetcode: 1025. Divisor Game.
# 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