Qm
BrainteasersJane StreetOptiver

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

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Four tumblers on a rotating tablePlacing knights so that none attackRacing a rook to the cornerA row of ten countersWhich card is bigger?Writing digits to reach a multiple of nine
All questions →