Qm

Draw a count, then flip that many coins

A jar holds tickets numbered 1,2,3,4,51, 2, 3, 4, 5. You draw one at random and call it NN. You then flip NN fair coins and count how many land heads.

What is the expected number of heads?

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

Children and grandchildren in a random family treeClaims in a quiet or busy month, each with a costRandom number of dice, then their totalSpin for a count, then deal that many cardsTwo dice set the count, then draw that many tickets
All questions →