You're in a room with two doors. There's a guard at each door. One door is the exit, but behind the other door is something that will kill you. You're told that one guard always tells the truth and the other guard always lies. You don't know which guard is which. You are allowed to ask one question to either of the guards to determine which door is the exit. What question should you ask?
Solution »Ask either guard what door the other guard would say is the exit, then choose the opposite door.
If you ask the guard who always tells the truth, he knows the other guard would lie, so he'll point you to the door leading to death. If you ask the guard who always lies, he knows the other guard would truthfully show you the exit, so he'll lie and point you to the door leading to death.
0 comments:
Post a Comment