Flips until two heads in a row on a lucky coin
A biased coin lands heads with probability on each flip. You flip 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 rowFlips until four heads in a rowRolls until two sixes in a rowFlips until three of the same face in a rowTaking turns to roll the first six
All questions β