Expected flips to get two heads in a row
You flip a fair coin repeatedly, stopping the moment you see two heads in a row.
What is the expected number of flips until you stop?
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
Expected rolls to get two sixes in a rowExpected spins to land red twice in a rowExpected draws to get two spades in a rowExpected items until two defects in a rowRandom walk on a square to the opposite cornerRandom walk across a hexagon to the far vertex
All questions β