People entering until two share a birthday
People walk into a room one at a time, birthdays independent and uniform over days. You stop counting the instant someone shares a birthday with a person already in the room.
On average, how many people enter before that first shared birthday?
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
How many draws until a card repeats?PINs generated until the first duplicateRolls of a hundred-sided die until a repeatExpected number of shared-birthday pairsWhy twenty-three people give even odds
All questions →