Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Train station solution

created by jliszka

(idea) by jliszka (2.2 y) (print)   ?   (I like it!) Fri Mar 09 2001 at 4:35:37

This is the solution to problem 12 on the hard interview questions node. If you have not read the question, the following will make no sense to you:

The best way to think about this problem is to consider it from the perspective of the wife. Her round trip was decreased by 20 minutes, which means each leg of her trip was decreased by 10 minutes. Thus, she met Joe 10 minutes earlier than she usually does (6:00), so she meets him at 5:50. Since Joe started walking at 5:00, he must have been walking for 50 minutes.

Here's another way to look at it: notice that we didn't specify any of the distances, including how far away Joe's house is from the train station. So let's try examining a degenerate case, say, where Joe lives at the train station. But this doesn't make much sense, because his wife's round trip can't decrease by 20 minutes if it is already zero. So the real degenerate case is when Joe's wife normally has to drive 10 minutes to get to the train station, and thus her round trip is 20 minutes less, i.e., zero minutes in the case. This means that John meets her at home just as she is about to leave. What time does she normally leave? At 5:50, so she can get to the train station at 6:00. Thus Joe must have been walking for 50 minutes to arrive home at 5:50.


printable version
chaos

hard interview questions degenerate Dream Log: June 19, 2005 Platform 3, Victoria Station
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Croque monsieur
Romantic Period Music
I made an old man cry
Bigfoot
Pocky
using public variables in c++ classes
Super Nintendo Entertainment System
Carbon
fuzzy logic
Vegan ingredients
My first protest
John Paul II
We Cannot Breathe, We Cannot Breathe
New Writeups
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
Everything 2 is brought to you by the letter C and The Everything Development Company