Ten servers grabbing random ports
Ten services each pick a random port to listen on, choosing independently and uniformly from available ports.
What is the probability that at least two services pick the same port?
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
Duplicate PINs among twenty new usersShared birthday among thirty party guestsEight processes writing to random memory blocksFifteen guests drawing raffle numbersHow long until you draw the same thing twice?
All questions →