Eight coins, and maybe none of them is fake
You have eight coins. At most one of them is counterfeit, and a counterfeit coin is heavier than a genuine one. It is entirely possible that all eight are genuine.
Using a two-pan balance, you must either point to the heavy coin or declare with certainty that there is no heavy coin.
Can you always do this in two weighings? If so, how?
Show a hint
Count the possible states: eight "coin k is heavy" states plus one "nobody is heavy" state. Compare that with the number of outcomes two weighings can produce. Then make sure your last weighing can end in a balance that means "all clear".
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.