Qm

Expected same-color neighbors in a shuffled deck

You shuffle a standard 5252-card deck (26 red, 26 black) and lay it out in a row. You then scan the 5151 neighboring pairs of adjacent cards and count how many pairs are the same color.

On average, how many same-color adjacent pairs are there?

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

Cashing in a single card drawDeal five cards, expected number of acesDeal thirteen cards, expected number of heartsDeal ten cards, expected number of face cardsDeal seven cards, expected number of red cards
All questions →