| ||
|
A part of techInterview.org: answers to technical interview questions.
Your host: Michael Pryor |
There is a clock at the bottom of the hill and a clock at the top of the hill. The clock at the bottom of the hill works fine but the clock at the top doesn't. How will you synchronize the two clocks. Obviously, you can,t carry either of the clocks up or down the hill! And you have a horse to help you transport yourself. And, the time required for going up the hill is not equal to the time required to go down the hill.
Picked from yahoo answers : - You have to go up the hill and come back, with horse, without horse, getting four equations to solve four unknowns: a) time to go uphill - with horse, b) time to go uphill - without horse, c) time to go downhill - with horse, d) time to go downhill - without horse. Then you can go up the hill and set the clock to '(time when you left) + (time to go uphill with horse)' | |
Powered by FogBugz
