Qm
BrainteasersJane Street

Three houses, three utilities, no crossing pipes

Three houses each need connecting to three utilities: gas, water and electricity. Each house must have its own line to each utility, nine lines in all, drawn on flat ground, and no two lines may cross.

Show that it is impossible, and explain what a proof of impossibility has to look like. Would it be possible on the surface of a doughnut?

Show a hint

Suppose it could be done. Count the corners (6), the lines (9), and use Euler's formula for a drawing in the plane: corners minus lines plus regions equals 2. Then think about how many lines must border each region.

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

Four pieces of a clock face with equal sums?A closed knight's tour on a five-by-five boardFifty-three bricks in a six-by-six-by-six boxFive in a circle, each says the person on the left is a knaveFour coins, no reference, two weighings?
All questions →