Problem: You are blindfolded in front of a table holding 10 coins arranged in two rows of five. Although you can touch and flip the coins, you cannot tell whether a coin is heads or tails by feeling it. You know that 5 coins start heads up and 5 coins start tails up, though you do not know which is which. Your goal is to end up with the same number of heads in both rows using flips only—no peeking and no moving coins between rows.
Play 10 Coins Puzzle Game and solve the problem.
10 Coins Puzzle Solution
Flip every coin in one row (say, Row 1) and leave the other row (Row 2) untouched.
There are 5 Heads in total across all 10 coins. If Row 1 starts with $x$ Heads, then Row 2 must start with $5 – x$ Heads. When you flip all 5 coins in Row 1, its $x$ Heads become Tails and its $5 – x$ Tails become $5 – x$ Heads. Now both rows have $5 – x$ Heads.
Understand with example:
Imagine the 10 coins sit in two rows of 5 on the table, with 5 Heads (H) and 5 Tails (T) distributed in an unknown way—for example, 2 Heads in Row 1 and 3 Heads in Row 2.
Initial Hidden State (5 Heads and 5 Tails total):
- Row 1:
H H T T T(2 Heads, 3 Tails) - Row 2:
H H H T T(3 Heads, 2 Tails)
Action (Flip Every Coin in Row 1):
Touch each of the 5 coins in Row 1 and flip it over once. Leave Row 2 completely untouched.
Result After Flipping Row 1:
- Row 1 becomes:
T T H H H(3 Heads, 2 Tails) - Row 2 stays:
H H H T T(3 Heads, 2 Tails)
Both rows now have 3 Heads each.
Why This Solution Always Works (Any Starting Split)
Because there are 5 Heads in total across all 10 coins:
- Suppose Row 1 starts with $x$ Heads (and therefore $5 – x$ Tails).
- Row 2 must start with the remaining $5 – x$ Heads.
- Flipping every coin in Row 1 turns its $5 – x$ Tails into $5 – x$ Heads, which always equals the $5 – x$ Heads already in Row 2—whether $x$ is 0, 1, 2, 3, 4, or 5.