Expected same-color neighbors in a shuffled deck
You shuffle a standard -card deck (26 red, 26 black) and lay it out in a row. You then scan the 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
- 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
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 →