Results 1 to 4 of 4

Thread: Brain Teaser

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Scotland
    Posts
    21

    Arrow 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

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    "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.

  3. #3
    Addicted Member kikelinus's Avatar
    Join Date
    Nov 2000
    Posts
    219
    In other words....this is your homework, right?

  4. #4
    ChimpFace9000
    Guest
    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
  •  



Click Here to Expand Forum to Full Width