Flips until the pattern tails-heads-tails-heads appears
You flip a fair coin until the last four flips are T, H, T, H.
On average, how many flips does it take for THTH to first appear?
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 the pattern heads-tails-heads appearsFlips until the pattern heads-heads-heads appearsFlips until the pattern heads-heads-tails appearsRolls until a one is immediately followed by a twoTaking turns to roll the first six
All questions β