Logical Puzzles

Bulbs

There are three light switches in the basement labeled A, B, and C. They are connected to three lightbulbs in the attic labeled X, Y, and Z. You can turn the switches on and off, and leave them in any position you'd like. You start in the basement, and are only allowed one trip upstairs to the attic. How can you reliably determine which switches correspond to which lightbulbs?

Four Gallons

You have two buckets that can hold exactly three and five gallons of water, respectively. You need to measure out precisely four gallons of water. How can you accomplish this?

Wolf, Goat, Cabbage

You are standing on the bank of a river with a wolf, a goat, and a cabbage. You have a rowboat, and can ferry only one across the river at a time. The wolf will eat the goat if left alone together, and the goat will eat the cabbage if left alone together. How do you get the wolf, goat, and cabbage across the river?

Pigeons on the Stairs

A staircase has 100 steps. On the first step stands a pigeon; on the second, two pigeons; on the third, three; on the fourth, four; on the fifth, five; and so on, on every step up to the hundredth where there are 100 pigeons. What is the simplest way to determine how many pigeons there are altogether?

Towers of Hanoi

You have a stack of five discs, from largest to smallest, that slide onto the first peg of a three-peg board. Your goal is to move the entire stack of discs from the first peg to the third. However, you can only move the topmost disc of any peg, and smaller discs must always be placed on larger discs. What is the minimum number of moves in which this can be done?

Hat Color

Three women are buried in the sand all facing forwards with their heads above ground. Each woman has a hat placed on her head (selected from a bag containing three red hats and two black hats). The women cannot turn around to see behind them, but they can see the woman (or women) in front of them. The woman at the back is asked what color hat she is wearing, to which she replies "I do not know." The middle woman is asked what color hat she is wearing, to which she also replies "I do not know". The woman at the front is then asked what hat she is wearing. She replies, "I am wearing a red hat." How did she know?

Dining Philosophers

Five philosophers sit around a circular table. In front of each philosopher is a large plate of rice. The philosophers alternate their time between eating and thinking. There is one chopstick between each philosopher (to their immediate right and left). In order to eat, a given philosopher needs to use both chopsticks. How can you ensure all the philosophers can eat reliably without starving?

Eight Queens

Given eight queens and a standard chessboard (8 squares by 8 squares), how many unique positions (exclusive of rotations and mirror images) can those eight queens occupy without attacking each other?

Two Generals

Two armies, each lead by a general, are preparing to attack a city. The armies are encamped outside the city on two mountains separated by a large valley. In order to capture the city, the generals must attack at exactly the same time. The only way for the generals to communicate is by sending messengers through the valley. Unfortunately, the valley is occupied by the city's defenders, so there's a chance any given messenger will be captured. Each general has no way of knowing if their messenger has arrived. How do the generals coordinate their attack?

Pirates

Five pirates have obtained 100 gold coins and have to divide up the treasure. The pirates are all extremely intelligent, treacherous and selfish (especially the captain!). The captain always proposes a distribution of the loot. All pirates vote on the proposal, which is accepted if at least half the crew votes yes. No pirate is willing to take on the captain without superior force on his side. If the captain fails to obtain support of at least half his crew (including himself), he faces a mutiny. All pirates will turn against him and make him walk the plank, after which the pirates start over again with the next senior pirate as captain. What is the maximum number of coins the captain can propose to keep without risking his life?

Last updated

Was this helpful?