FREEFREE+0ACC--

← Brain TeasersRead the written solution

Outcry Pro

The Line of Hats is part of Outcry Pro

Outcry Pro opens every game, all the timed mock screens and your full diagnostic. The warm-up drills stay free: mental math, sequences, classic Fermi and Duck Duck Dash.

About The Line of Hats

The hundred-prisoner hat line as a story: one word each, and a parity code that saves 99.

A hundred prisoners stand in a line, each wearing a black or white hat assigned by coin flip. Each sees every hat in front, none behind, and their own least of all. From the back forward each must say exactly one word - 'black' or 'white' - heard by everyone; a correct call about your own hat means survival. They may agree a strategy the night before. The story asks for the best strategy and how many it guarantees. You lock in a guess, then step through the answer and breakdown.

Why quant interviews test this

This is an information-theory question in costume: notice the strategy space is what one public word can encode, reach for parity, and prove optimality via the first speaker's independence. The written solution is at /brain-teasers/hat-colours/solution.

The The Line of Hats guide covers how scoring works, the strategy that wins, a worked example and the mistakes most players make.

More Brain Teasers games