Prisoner Hat Riddle Google Interview
If they get it right they live.
Prisoner hat riddle google interview. A puzzle from Google about 100 prisoners in a line. Prisoners and Four - hats. C and D realise this.
Jailer gives all four men party hats. He eventually comes up with the solution of giving them a puzzle so if they succeed they can go free but if they fail they are executed. The jailer explains that there are two black hats and.
So prisoner Y will speak out and all of the prisoners will be released again. The jailer puts three of the men. And if prisoner Y can see that prisoner Z is wearing a white hat then prisoner Y knows that he himself must be wearing a black hat.
Puzzle 13 100 Prisoners with RedBlack Hats 100 prisoners in jail are standing in a queue facing in one direction. 4 prisoners wearing black and white hats. Four prisoners are arrested for a crime.
All know that there are 2. The 4 criminals are lined up on some steps shown in picture. Google Deepmind has developed an algorithm that is able to resolve a notoriously knotty 100-hat riddle The riddle requires such high levels of lateral thinking and problem solving that it.
Now the same puzzle with different condition. 100 prisoners in jail are standing in a queue facing in one direc. Each prisoner wears a red or blue hat.