Back to Brain Tonic
LogicmediumBT-119
#119 100 Prisoners Hat Puzzle
100 prisoners are lined up, each wearing a red or blue hat. Each can see all hats in front but not their own or those behind. Starting from the back, each must guess their own hat color. If correct, they go free; if wrong, executed. They can agree on a strategy beforehand.
What is the maximum number of survivors they can guarantee?