Qm

Rolls until a one is immediately followed by a two

You roll a fair six-sided die until the last two rolls are a 11 immediately followed by a 22 (the pattern "1,21,2").

On average, how many rolls does it take for "1,21,2" 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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. 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 β†’