Qm

How many man-woman neighbors in a random line?

Five men and five women (10 people total) stand in a single row in a completely random order.

On average, how many of the 9 neighboring pairs consist of one man and one woman?

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 same-color neighbors in a row of balls?How many cat-cat neighbors in a line of pets?How many rising steps in a shuffled list?How many falling steps in a shuffled list?Shuffled suit: how many times does the next card climb?
All questions β†’