Twenty coins in a circle
Twenty coins lie in a circle on a table. Two players take turns. On a turn, a player removes either one coin, or two coins that are adjacent (next to each other with no gap between them). Coins do not move after others are removed, so gaps stay gaps. The player who removes the last coin wins.
Which player wins with best play, and what is the strategy? Does the answer depend on the number of coins?
Show a hint
After the first player's move, the circle has become a single arc of coins with a gap. Can the second player split that arc into two identical halves?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.