Amazon Interview Question
Software Engineer / DevelopersThe form of the cable is like to be approximated to parabola. Calculate the length of parabola, this must be enough to solve the task.
If there are two poles with a cable hanging between 7' off of the ground, the distance is not zero! What kind of bs is this?
Hey Mike !That was exactly what I thought...I do not understand the solution zero ? Why zero meters ?? Why ?
pole 1 is 15 ft high. to get to 7 ft high you need to go down 8. then to get back up to the second pole you need to go up 8. 8+8 is 16. which is the length of the cable. leaving no distance for any horizontal. hence the poles are on top of each other (or zero apart). which technical doesn't work. but you could say as close to zero as the poles allow.
The question wordings are ILLOGICAL and not worthy of Amazon standards
Reason:
The Question CLEARLY states 2 poles & cable hanging between the 2 poles.
The answer solution of this being a cable hanging down vertically would mean it is ONLY ONE pole.
So Amazon should now assess the question setters language problem than conjuring up these RUBBISH LOGICALLY INCORRECT questions
The question wordings are ILLOGICAL and not worthy of Amazon standards
Reason:
The Question CLEARLY states 2 poles & cable hanging between the 2 poles.
The answer solution of this being a cable hanging down vertically would mean it is ONLY ONE pole.
So Amazon should now question the question setters language problem than conjuring up these RUBBISH LOGICALLY INCORRECT questions
The question wordings are ILLOGICAL and not worthy of Amazon standards
Reason:
The Question CLEARLY states 2 poles & cable hanging between the 2 poles.
The answer solution of this being a cable hanging down vertically would mean it is ONLY ONE pole.
So Amazon should now question the question setters language problem than conjuring up these RUBBISH LOGICALLY INCORRECT questions
Assume the line is 100 m and the poles are 50m instead of 15m.
Then you push both poles towards each other until the distance is 0m between the poles.
Now, the line is 50m on both poles and touching the ground with 50m hanging down from each pole.
Now pull off 20 m from the line so it becomes 80m. The line will then hang 50-(100-20)/2) meters down each side but the poles are still 0m between each others.
So the correct answer must be 0m also in this case with this, more odd numbers.
Nothing 'illogical' about the question!
If the distance between the two poles is said to be zero then it does not necessarily mean that the two poles are one!
In physics the distance between two bodies is actually taken to be the distance between their centres of mass. But that happens if we take the bodies to be point-like. Here the two poles are simply adjacent to each other.
The distance between poles is zero. In this case, the cable will be hanging directly down and its center be 8mts down which is half of its length. The height of the poles are 15mts, so 15mts - 8mts = 7mts.
- Anonymous March 04, 2011