Non-red gumballs score points until a red one
A gumball machine gives a red gumball with probability each time, independently. You keep buying gumballs until you get a red one, then stop. For each non-red gumball you got before the red one, you flip a fair coin and score points on tails or points on heads.
What total score should you expect?
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
Heads earn card draws until the first tailA random number of customers, each an average spendA cat's nightly catch of miceChildren and grandchildren in a random family treeClaims in a quiet or busy month, each with a cost
All questions →