Qm

Down to the last three badges

An app awards one random badge per level, uniformly from 8 badge types, independently. You currently hold 5 different badges.

On average, how many more badges must you earn to collect all eight?

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

Finishing a partly complete collectionTwo down, four to goJust two flavors shortHalfway through a set of twelveCollecting all six cereal-box toys
All questions β†’