Search
⌘K

Leetcode 3222. Find the Winning Player in Coin Game

Players alternately must pick coins summing to 115, which can only be done by taking one 75 and four 10 coins, so the game reduces to repeated removal of that fixed set. The winner is determined by the parity of the number of moves possible, min(x, floor(y/4)) — Alice wins if it's odd, otherwise Bob.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.