100 prisoners and 100 boxes
Asked at Jane Street, Citadel
There are 100 prisoners, numbered 1 to 100. In a room are 100 boxes, each containing a slip with a distinct prisoner's number (a random permutation). One at a time, each prisoner enters the room and may open 50 boxes, looking for their own number. Then they leave, restoring the boxes exactly, and cannot communicate with those who follow.
If every prisoner finds their own number, all go free. If even one fails, all are executed. The prisoners may agree on a strategy beforehand.
Find a strategy that succeeds with probability greater than 30%. (Random guessing gives , essentially zero.)
Show a hint
Have each prisoner treat the boxes as a permutation: start at the box with their own number, then follow the number found inside to the next box. Why does this help?
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.