Prisoner Hat Riddle Google Interview. There are four prisoners. The jailer puts three of the men.
In the riddle 100 prisoners stand in line one in front of the other each wearing either a red hat or a blue hat. When the time is nearly up or maybe before C realises that D isnt going to answer because he cant. Every prisoner can see the hats of the people in front but not their own hat or.
There are four prisoners.
Heres how the riddle. C therefore concludes that he has a black hat because he can. Instead of two red and two blue hats there are 3 hats of one colour and only 1 hat of another and the 3 prisoners can see each other ie. However if they take part and one of them gives a wrong answer or none of them can work out the answer at all then their sentences will be doubled.