Problem 1840 · Hard

Maximum Building Height

Tighten each building cap from both sides, then the tallest allowed height lies at a peak between two capped neighbours.

Open the interactive visualisation