Rolls until a one is immediately followed by a two
You roll a fair six-sided die until the last two rolls are a immediately followed by a (the pattern "").
On average, how many rolls does it take for "" 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 appearsFlips until the pattern tails-heads-tails-heads appearsTaking turns to roll the first six
All questions β