PDA

Click to See Complete Forum and Search --> : Brain Teaser


CaptainChainsaw
Feb 24th, 2002, 09:18 AM
A new student who wanted to find the main hall in a university came to a fork in the corridor. He saw a member of staff talking with a student. He knew that either the staff always tells lies and students tell the truth or vice versa. Given that the freshman has only one question what should he ask in order to determine the correct corridor?


Write a program which will work out the correct corridor given the response to the question.

CaptainChainsaw

CornedBee
Feb 24th, 2002, 01:00 PM
"Would the other person tell me that the left way is the correct one?"

This is really not the forum for such things.

kikelinus
Feb 24th, 2002, 04:27 PM
In other words....this is your homework, right?

ChimpFace9000
Feb 25th, 2002, 03:43 AM
Theres a movie called Labyrinth with that hottie Jennifer Connely that tackles this question.