Boy–girl neighbors in a line
boys and girls line up in a uniformly random order. What is the expected number of adjacent positions occupied by a boy and a girl (in either order)?
Show hints (2)+
- There are adjacent pairs; use linearity of expectation.
- A pair is mixed (BG or GB) with probability .
Answer
Reveal answer →Final answer
12
Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.
Asked at: Jane Street, Two Sigma