Prisoner hat color strategy
Filed under Adobe
The question
Prisoners in a line can see hats of those in front but not their own. Given two colors, find a strategy to save the maximum number of prisoners.
No write-up yet. Related questions below have one.
Related Adobe questions
Collected from public candidate posts and coding forums. Updated Nov 2026.