Two people with exactly the same number of hairs
A human head has at most about 150,000 hairs. A large city, say London, has about 9 million residents.
Show that at least two residents of the city have exactly the same number of hairs on their heads. Then say how large a group of people is needed before this is guaranteed, and whether the argument tells you which two people they are.
Show a hint
Imagine 150,001 boxes labelled 0, 1, 2, ..., 150,000, and put each person into the box matching their hair count.
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 ways to make change for a dollar?A run of days that nets a multiple of nSplitting a deck in the darkA hundred empty glasses and the dregsFifty-one ants and a small square card
All questions →