SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru phantom007's Avatar
    Join Date
    May 2008
    Posts
    752
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Question The treasure quiz

    Recently I was asked this question in an interview and I could not answer it. Does someone here knows the answer?

    There are two closed doors and behind one of the door there lies treasures and the other is empty. These two doors are guarded by two guards. One of them is a liar and the other is a truth teller. You dont know which one of them is a liar and which one the truth teller. You can ask just one question to either of them to know which door has the treasure behind it.

    What would be that question?

  2. #2
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,265
    Mentioned
    247 Post(s)
    Tagged
    1 Thread(s)
    Maybe this article will give you the answer http://tvtropes.org/pmwiki/pmwiki.ph...ightsAndKnaves

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,319
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Just grab a sledge hammer, smash down both doors, grab the loot and be done with it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •