Flips until three of the same face in a row
You flip a fair coin until you see of the same face in a row, that is, either HHH or TTT. A flip that differs from the one before it starts a brand-new streak of length (it is not a full reset 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 two heads in a row on a lucky coinTaking turns to roll the first six
All questions β