Logic and brainteasers · Prisoners and hats · difficulty 4 of 5
Hats in a line
10 prisoners stand in a line, each facing forward, so each sees every hat in front of them but not their own or any behind. Each hat is black or white at random. Starting from the back, each prisoner says one word, 'black' or 'white', which everyone hears; those who name their own hat color go free. They agree a plan beforehand. With the best plan, what is the expected number freed?
Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.
More logic and brainteaser puzzles
- A home-and-away league · A sports league
- Breaking a chocolate bar · A chocolate bar
- Handshakes at a party · A party
- Lily pads cover the lake · A pond
- Machines making widgets · A factory
- Matches in a knockout · A tennis tournament
All logic and brainteaser puzzles · All puzzles · Market making game