Approach hintTry it first, then revealHide
After sorting the positions, the radius must cover half of the largest gap between neighbouring lanterns and the full distance from each street end to its nearest lantern.
After sorting the positions, the radius must cover half of the largest gap between neighbouring lanterns and the full distance from each street end to its nearest lantern.