Qm

How many hash buckets get used?

You hash 5050 emails into 6464 buckets, each email landing in a uniformly random bucket independently.

On average, how many buckets end up non-empty (used by at least one email)?

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

Expected number of distinct birthdays in a room of 30How many flavors after five picks?Distinct reactions after ten clicksPrize types among four spinsDifferent songs in a short shuffleExpected colliding pairs in a hash table
All questions →