Hats in a line

100 prisoners stand in a line; each wears a red or blue hat and can see all hats in front of them but not their own or those behind. Starting from the back, each must say "red" or "blue"; correct guesses survive, and everyone hears every guess. Playing optimally, how many can be guaranteed to survive?

Show hints (2)+
  1. The first speaker can encode one bit of global information.
  2. Parity of red hats lets everyone else deduce their own color.

Answer

Reveal answer →

99

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Hedge Fund Quant, Betting Game Rounds

Related questions