Just two flavors short
A candy jar mixes 5 equally common flavors. You grab pieces one at a time (blindly, with replacement in effect since the jar is huge), and you already have 3 different flavors.
On average, how many more pieces must you take to have tasted all five flavors?
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
- 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.
Related questions
Finishing a partly complete collectionTwo down, four to goDown to the last three badgesHalfway through a set of twelveCollecting all six cereal-box toys
All questions →