Qm

Colliding PIN codes

A website assigns each new user a random 3-digit PIN from 000000 to 999999, so there are 10001000 equally likely codes.

How many users must sign up before it is more likely than not that two of them were assigned the same PIN?

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

How big a team before two share a birthday?Matching your birthday specificallySharing a birth monthForty guests, any shared birthdayFiles before a hash table hits its first clash
All questions →