Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Puzzle | Heaven and Hell

  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2017

There are two gates, one to hell and the other to heaven. Two gatekeepers, one for each gate. One of them always speaks the truth and the other always lies but you don’t know which one guards which gate. You are allowed only one question and you need to find out the gate to heaven.
What is the question?


Ask any guard “What would the other guard say if I ask which way is to the hell ?”
And whatever answer he give is the way to the heaven.
If you end up asking the question to the truthful one, he will speak the truth and he knows that other guard is going to lie so he will show the way to the heaven.
If you end up asking the question to the liar, he will lie about the other and the answer will be the way to the heaven.


This article is contributed by Anuj Chauhan. If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

My Personal Notes arrow_drop_up
Recommended Articles
Page :