Qm

How many blocks of equal values in six dice rolls?

You roll a fair six-sided die 6 times in a row. A "block" is a maximal run of equal consecutive values, so 2,2,5,5,5,1 has 3 blocks: 2s, 5s, and 1.

On average, how many blocks appear in the 6 rolls?

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

How many streaks in ten coin flips?How many streaks in twenty coin flips?How many streaks with a biased coin?How many color blocks in a shuffled row of balls?How many rising steps in a shuffled list?
All questions →