The best riddles. Anywhere.

Riddle: Colored Hats Against The Wall

100 men are in a room, each wearing either a white or black hat. Nobody knows the color of his own hat, although everyone can see everyone else's hat. The men are not allowed to communicate with each other at all (and thus nobody will ever be able to figure out the color of his own hat).

The men need to line up against the wall such that all the men with black hats are next to each other, and all the men with white hats are next to each other. How can they do this without communicating? You can assume they came up with a shared strategy before coming into the room.

Think about each man going to stand against the wall one at a time.

Want the solution? You need to log in with your Google account.

Previous Riddle: Two Coins
Next Riddle: Measuring Gallons of Water