|
-
Feb 24th, 2002, 10:18 AM
#1
Thread Starter
Junior Member
Brain Teaser
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
-
Feb 24th, 2002, 02:00 PM
#2
"Would the other person tell me that the left way is the correct one?"
This is really not the forum for such things.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 24th, 2002, 05:27 PM
#3
Addicted Member
In other words....this is your homework, right?
-
Feb 25th, 2002, 04:43 AM
#4
Theres a movie called Labyrinth with that hottie Jennifer Connely that tackles this question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|