Log in! (forgot password)
Username: Password:
Back How Come? Random ??? Next The fake coin
All Puzzles / Mathematics /

Prisoners and hats

100 prisoners are standing in a line each 1 seeing the back of the ones in front of him. Each prisoner is given a black or a white hat. If they can guess the color of their hat they can go away freely, but if they say anything else than black or white or do anything else then everyone stays in prison. From the last one to the first each prisoner is asked 1 by 1 their hat color. The question is what tactic should they use so that the most people get out with certainty and whats the maximum number of people that can get out of prison(this number can be checked).

Bookmark and Share
(Show)
(Show)
People who liked this also liked: My eyes | Google Interview Question -... | The Security Guard |

Discussion

comments with spoilers hidden | Show All
folcklord about 24 hours ago
levitra 22712 xanax 796 cheap phentermine dvzd prozac 965
monkeychild 9 months ago contains spoiler (show)
letusdisscusits 9 months ago

I do not understand the explanation at all

c3623632 9 months ago

Addendum to my previous comment, I noticed you have “with certainty” in the explanation. I’ll rescind my comment, although I disagree with where you’ve placed it. And I don’t think I’m being picky… you really need to be careful with puzzle wording.

c3623632 9 months ago contains spoiler (show)
shashank 11 months ago

foolish question.

helium 11 months ago contains spoiler (show)
gravity 11 months ago

This one is stupid.

anurag 12 months ago

@alee, the last person in the line who sees only one black hat and thus answers black, is the one who can’t be saved with certainty. however, using that information all 99 prisoners ahead will be saved.

ivolvo 12 months ago

Believe it or not, a similar strategy would work if instead of black and white they have any number of colored hats, the only thing the prisoners need to know upfront how many colors are available. Guess how.

alee2586 12 months ago contains spoiler (show)
stuckie27 about 1 year ago contains spoiler (show)