Qm

One charm away from a milestone

A machine dispenses one charm per token, uniformly from 8 charm types, independently. You currently own 5 different charms.

On average, how many charms must you get before one of them is a type you do not yet have?

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

Waiting for the next new heroChasing the last two cardsEarly days of a flavor huntTwo-thirds of the way through the badgesCollecting all six cereal-box toys
All questions →