Qm
BrainteasersJane StreetCitadel

The shortest road network joining four towns

Four towns are located at the corners of a square of side 1 km. Roads are to be built so that it is possible to travel between any two towns along roads. Roads may meet at junctions anywhere, not just at towns.

Three sides of the square give a network of length 3. The two diagonals give a network of length 2 root 2, about 2.83.

What is the shortest possible total road length, and what does the network look like?

Show a hint

At the best possible junction, three roads meet at angles of 120 degrees. Try two junctions inside the square, each connected to two adjacent towns and to the other junction.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Cutting a 4 by 4 by 4 cube when you may restackThe biggest rectangle in a semicircleThe largest triangle inside a circleTwenty-five horses, five lanes, the top twoTying your shoelace on the moving walkway
All questions →