Can you solve the "Hanging Cable" problem, used as an Amazon interview question?

An anonymous reader shares a problem that Amazon asks in its interviews:

A cable of 80 meters is hanging from the top of two poles that are both 50 meters off the ground. What is the distance between the two poles (to one decimal point) if the center cable is (a) 20 meters off the ground and (b) 10 meters off the ground?


Did u share the news just for sharing or to get our response?

1 Like

10 meters above the ground

1 Like

sry 10 meters off the ground


You can also solve A without hard math, just geometry.

First, drop the factors of 10 so it’s 5 tall and 2 off the ground and 8 long

Find the upper bound:
Imagine the rope taught in two triangles. Then one of those triangles has a base of 2.64 = sqrt(16-9)

Find lower bound:
Replace the rope with 4 sticks each 2 long.
pin the left and right sticks to their flagpoles. this leaves two triangles for the remaining sticks to form.
length of the base of one triangle 1.76 = sqrt( 4 -1)

So the full width is twice those bounds: 5.2 > X >3.5

Pick a value in the middle 4.35

That’s got 1 digit accuracy on the right answer.

For Part B it will be 0.0 m

1 Like

I got the answer 52.9 meters
is it right ???

1 Like

It will be near about 42 < X > 44.


(a) 52.9m

(b) 0m

ummmm… nevermind , looked it up on yt
the ans is 45.4 meters