Qm

Two shuffled decks: how many positions match?

You have two identical 40-card decks. You shuffle each one thoroughly and independently, then lay them side by side and compare position by position: position 1 of deck A against position 1 of deck B, position 2 against position 2, and so on through position 40.

On average, how many of the 40 positions show the exact same card in both decks?

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

Shuffled suit: how many times does the next card climb?Deal 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 →