Flips until four heads in a row
You flip a fair coin until you see heads in a row. Any tail resets your current head streak to zero.
On average, how many flips does that take?
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
Flips until three heads in a rowRolls until two sixes in a rowFlips until two heads in a row on a lucky coinFlips until three of the same face in a rowTaking turns to roll the first six
All questions β