The Traveler and the Two Doors
An explorer reaches a fork in the middle of the desert. Two paths lie before them: one leads to an oasis with water, the other to certain death from thirst.
At the fork stand two twin guardians. One always tells the truth and the other always lies, but no one knows which is which. The explorer may ask only one question, of only one of the guardians, and both know which path leads to the oasis.
What question must the explorer ask to know for certain which path leads to the oasis?
See solution
They must ask either guardian: "If I were to ask the other guardian which path leads to the oasis, what would they tell me?" Then take the opposite path from the one they point to.
If the explorer asks the truthful guardian, that guardian will faithfully report what the liar would say, which is to point to the wrong path. If the explorer asks the liar, that guardian will lie about what the truthful one would say, which would be to point to the right path, so the liar too will indicate the wrong one. Either way, the answer points to the path that leads to death, so the explorer must choose the other.