A first pick sets the ceiling for the second
Pick a whole number uniformly from . Then pick uniformly from .
What is the expected value of ?
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
Three nested random picks, each capped by the lastThree shrinking uniform draws on the unit intervalA value repeatedly replaced by a smaller random oneA die sets the range for your next pickKeep a spin or respin once on the unit dial
All questions →