Train station Puzzle Interview Question

A forum for good logic/math puzzles.

Moderators: jestingrabbit, Moderators General, Prelates

bunny9
Posts: 6
Joined: Tue Aug 28, 2018 11:23 am UTC

Train station Puzzle Interview Question

Postby bunny9 » Fri Aug 31, 2018 7:17 am UTC

Hi,

I need help in solving the train station puzzle asked in technical interview.

Every day, Joe arrives at the train station from work at 6pm.
His wife leaves home in her car and meets him there at exactly 6pm, and drives him home. One day, Joe gets to the station an hour early, and starts walking home, until his wife meets him on the road. They get home 20 minutes earlier than usual.
How long was he walking?
Distances are unspecified. Speeds are unspecified, but constant.
Output a number which represents the answer in minutes.

Case 1 : Answer is a integer. Just put the number without any decimal places if its an integer. If the answer is Infinity, output Infinity.
Case 2 : Floating point number. Round it off to 2 decimal places and output it as I.xx where I is the integer part of the answer, and xx are 2 decimal digits after rounding off.


Source - InterviewBit

Thanks in advance!

User avatar
jaap
Posts: 2081
Joined: Fri Jul 06, 2007 7:06 am UTC
Contact:

Re: Train station Puzzle Interview Question

Postby jaap » Fri Aug 31, 2018 8:51 am UTC

It's easy once you see it.

Spoiler:
His wife is obviously also home twenty minutes early.
This means she saved 10 minutes drive both ways to/from the station.
So she met him when she had still 10 minutes to go to the station, i.e. at 5:50pm.
He was walking from 5 till 5:50, so 50 minutes.

User avatar
Bloopy
Posts: 213
Joined: Wed May 04, 2011 9:16 am UTC
Location: New Zealand

Re: Train station Puzzle Interview Question

Postby Bloopy » Sun Sep 02, 2018 5:53 am UTC

Spoiler:
The 20 minutes saved is the time his wife would've spent driving from the spot they met on the road to the station, and back to that spot again. So, 10 minutes in each direction, meaning they met at 5:50pm after he'd been walking for 50 minutes.
Sometimes I literally have to see these ones. I scribbled a distance/time graph to make sense of it.

User avatar
Sableagle
Ormurinn's Alt
Posts: 1817
Joined: Sat Jun 13, 2015 4:26 pm UTC
Location: The wrong side of the mirror
Contact:

Re: Train station Puzzle Interview Question

Postby Sableagle » Sun Sep 02, 2018 9:04 am UTC

I didn't actually solve this properly. I thought of a "what if" and it worked:

Spoiler:
What if the point where she met him on the road was outside their house, as she was about to get into the car?
Oh, Willie McBride, it was all done in vain.


Return to “Logic Puzzles”

Who is online

Users browsing this forum: No registered users and 2 guests