Qm
BrainteasersJane StreetCitadel

The heaviest and the runner-up among eight coins

You have eight coins of eight different weights and a balance that compares one coin with one coin. You want to know both the heaviest coin and the second heaviest coin.

Finding the heaviest alone takes seven comparisons. A naive approach then removes the champion and finds the heaviest of the remaining seven with six more comparisons, for a total of thirteen.

What is the minimum number of comparisons that guarantees you find both?

Show a hint

Which coins could possibly be second heaviest? Only those that were beaten directly by the eventual champion. In a knockout tournament, how many coins is that?

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

Find the heaviest of eight with a balanceBoth the lightest and the heaviest of ten coinsThe median of five numbers in six comparisonsSort four items in five comparisons12 coins, one fake of unknown weight
All questions →