Qm

Expected duplicate-code pairs among a thousand users

Each of 10001000 users is assigned a random 66-digit code, uniform over 10000001000000 codes, independently.

On average, how many pairs of users end up with the same code?

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 many months with no birthday?Expected number of head-head pairsExpected heads from a biased coinExpected number of sevensExpected same-color neighbors in a shuffled deck
All questions →