Qm

A die sets the range for your next pick

Roll a fair six-sided die and call the result NN. Then pick a whole number KK uniformly from {1,2,,N}\{1, 2, \dots, N\}.

What is the expected value of KK?

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

A rumor's loudness scaled by a die each roundThree nested random picks, each capped by the lastThree shrinking uniform draws on the unit intervalA value repeatedly replaced by a smaller random oneA first pick sets the ceiling for the second
All questions →