Results 1 to 19 of 19

Thread: A question from an interview at Microsoft.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Hi,
    There are 4 people that want to cross the bridge. They have 1 flash light.

    Person A takes 10 minuts to cross the bridge,
    Person B - 5 min,
    Person C - 2 min,
    Person D - 1 min

    The bridge can only hold 2 people at a time at most.
    They can only cross with a flash light.

    How can they ALL cross the bridge in 17 minutes?
    Thanks

    Tomexx.

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    A and B cross = 2 minutes
    A returns = 1 minute
    C and D cross = 10 minutes
    B returns = 2 minutes
    A and B cross = 2 minutes

    = 17 minutes

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    No. A and B would take 10 minutes to go and another 5 minutes for B to come back.

    Try again.
    Thanks

    Tomexx.

  4. #4
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    Sorry I copied this from a thread from two weeks ago and this was the question...my answer was right for this question but you swapped the times.

    There are four people who need to cross a bridge at night. The bridge is only wide enough for two people to cross at once. There is only one flashlight for the entire group. When two people cross, they must cross at the slower member's speed. All four people must cross the bridge in 17 minutes, since the bridge will collapse in exactly that amount of time. Here are the times each member takes to cross the bridge:
    Person A: 1 minute
    Person B: 2 minutes
    Person C: 5 minutes
    Person D: 10 minutes


  5. #5
    Guest

    Question toughy

    A & D cross in 1 minute. D=1, A=1
    A returns in 1 minute. D=1, A=2
    A & C cross in 2 minutes. D=1, C=2, A=4
    A returns in 1 minute. D=1, C=2, A=5
    A & B cross in 5 minutes. D=1, C=2, B=5, A=10

    They all have crossed the bridge in under 17 minutes. It took 10 total minutes and they have 7 minutes left to get clear of the exploding bridge (which was going to explode in 17 minutes).

    Or maybe you meant that all their times together add to 18 minutes.

    Either way, I have the final configuration of times:
    Person A takes 10 minuts to cross the bridge,
    Person B - 5 min,
    Person C - 2 min,
    Person D - 1 min
    Or I'm just plain wrong.

    [Edited by VirtuallyVB on 10-04-2000 at 06:05 PM]

  6. #6
    Lively Member
    Join Date
    Jun 2000
    Location
    Belgium
    Posts
    77
    A and D :
    D follow A until 8'45.
    D go to the end the brigde (15'')
    D return (while A go to the end) (1'00)
    (A and D was on the brigde all the 10'00 with the flash light)
    A the end of the 4' D is at the begining and A at the end)
    Time 10'

    B and D :
    D follow B until 3'
    D go to the end of the bridge (less then 1' (waiting until 4'))
    D return (while B go to the end) (1')
    (B and D was on the brigde all the 5' with the flash light)
    Time 5 min

    C and D
    D follow C until the end of the bridge
    Time 2 min


    Total 17 min

    (sorry for my explanation, my english is bad)
    KWell

  7. #7
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    D (who is obviously the thinnest of the bunch) slaughters the rest.

    He then eats the remains (taking about 15mins) and then strolls across the bridge in 2 mins.

    Easy.

    PS This was also a question used in a staff team building exercise at Motorola (where a friend of mine works).
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  8. #8
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    C who is dying for a pint, grabs the flash light and run's over the bridge, goes to the nearest pub, get's absolutley wasted, crawls back to the bridge, destroys it and pull's a mooney at his mates.
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  9. #9
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    B, with a burst of inspiration, swallows the torch and uses himself as beacon to guide in the rescue helicopter.
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  10. #10
    Guest

    Question Was the question well posed?

    Tomexx and All
    I really want to know if I am correct. I did end with the times that Tomexx said they took. Those times add to 18 not 17.

  11. #11
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Person D escorts each one - this works fine if you do the calculations with an original issue Pentium processor

    Originally posted by Tomexx
    Hi,
    There are 4 people that want to cross the bridge. They have 1 flash light.

    Person A takes 10 minuts to cross the bridge,
    Person B - 5 min,
    Person C - 2 min,
    Person D - 1 min

    The bridge can only hold 2 people at a time at most.
    They can only cross with a flash light.

    How can they ALL cross the bridge in 17 minutes?

  12. #12
    Guest
    Originally posted by Ianpbaker
    C who is dying for a pint, grabs the flash light and run's over the bridge, goes to the nearest pub, get's absolutley wasted, crawls back to the bridge, destroys it and pull's a mooney at his mates.
    I think this is the best answer thus far.

    Sherm

  13. #13
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Talking Chit Chat? The I can cheat!

    Cheating or chitting?

    A = 10 min
    B = 5 min
    C = 2 min
    D = 1 min

    The only combination that fits is: 10 + 5 + 2 = 17 minutes. So far so good. Now the poor D, who is the fastest, has to work triple than fatty A. (Go, come, go) Unfair. Just as in real life!

    OK:

    A + D cross the bridge - 10 min.

    D returns, BUT C begins to cross at the same time: 2 persons, 1 flash light. Conditions are met. Time = 2 min

    When C has finished crossing, B and D start to cross. Time = 5 minutes.

    10 + 2 + 5 = 17.

    It works also if A and C cross first: A + C = 10 minutes. C returs, D crosses at same time: 2 minutes. Then B and C cross, time 5 minutes. Total 10 + 2 + 5 = 17.-

    Also B + C = 5 min. Then C returs, D crosses. Time = 2 min. Then A + C, time 10 min: 5 + 2 + 10 = 17.

    Also... STOP! ENOUGH!!

    I´m genius!



    [Edited by Juan Carlos Rey on 12-06-2000 at 09:21 PM]
    Combat poverty: kill a poor!!

  14. #14
    Lively Member
    Join Date
    Nov 1999
    Location
    Cincinnati, OH
    Posts
    66

    Lightbulb Correct Answerr

    boys, boys, boys...
    Look for the loophole. All 4 people have to cross the bridge. They do not have to end up on the same side...
    A&B cross the bridge (17-10=7 lminutes left.) Person b brings back the flashlight (7-5=2 minutes left.) C & D cross the bridge, time expires. All 4 people have crossed the bridge.
    If you drop a blond and a UNIX box out a window, which one lands first?

  15. #15
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I can tell you that I have seen this problem before and the solution has already been given here:

    C&D go - 2 mins
    D back - 3 mins
    A&B go - 13 mins
    C back - 15 mins
    C&D go - 17 mins

    That's the solution. There's no catch.
    Harry.

    "From one thing, know ten thousand things."

  16. #16
    Guest

    Thumbs up

    I thought he meant those are the total times taken for each guy. I see that HarryW is correct, but the total time crossing for each person is:
    A 10
    B 10
    C 6
    D 5

    Good Job HarryW!

  17. #17
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    The bridge can only hold 2 people at one time. They omitted to mention A's car. This gets them across in 32.4 seconds with the bridge collapsing under the strain behind them.

    Well, they wanted lateral thinking!

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  18. #18
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    No, they all died, because 'A' took so long to get across the bridge that the flashlight batteries died and they all fell to a bloody death on the cliffs below.

    He He

    (Sorry, I don't get to be sarcastic very often)
    Normal is boring...

    smh

  19. #19
    spetnik
    Guest

    Talking

    Wow, is this Katies 1st????????

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