Question: Heres a brain teaser that uses Boolean logic: Youre traveling on a road, and you come to a fork in the road. You know that

  1. Here’s a brain teaser that uses Boolean logic:
  2. You’re traveling on a road, and you come to a fork in the road. You know that one path leads to a pot of gold and the other path leads to a dragon. There are two elves at the fork, both of whom know the way to the pot of gold. You know that one elf always tells the truth and the other elf always lies, but you don’t know which elf is which. What single question should you ask to figure out the proper path to the pot of gold?

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This is a classic logic puzzle You can solve it by asking either one of the elves the follow... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Programming With Java A Problem Solving Approach Questions!