Morgan Stanley Interview Question
Software Engineer / DevelopersTrain A Speed = 100 miles/h
Train B Speed = 100 miles/h
Length of Tunnel = 100 miles
A and B enter into tunnel from opposite end.
A and B meet at middle of tunnel (50miles) after 30 minutes.
A and B cross each other in 15 minutes.
Not sure about Bee and its life saving strategy since there is no information like direction of bee, how it comes to tunnel ect.
To Help someone in search of the problem ..
problem: two trains enter a tunnel 200 miles long (yeah, its a big tunnel) travelling at 100 mph at the same time from opposite directions. as soon as they enter the tunnel a supersonic bee flying at 1000 mph starts from one train and heads toward the other one. as soon as it reaches the other one it turns around and heads back toward the first, going back and forth between the trains until the trains collide in a fiery explosion in the middle of the tunnel (the bee survives). how far did the bee travel?
??
- Anonymous November 20, 2008