Rolls until two sixes in a row
You roll a fair six-sided die until you get two s in a row. Any non-six resets your current streak of sixes to zero.
On average, how many rolls 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 rowFlips until two heads in a row on a lucky coinFlips until three of the same face in a rowTaking turns to roll the first six
All questions β