Rain Caught on a Rooftop Row

Hard · Two Pointers · about 35 min

A street has a row of flat-roofed buildings, each 1 unit wide, with no gaps between them.

Hard problems are part of TuringPath Pro. See plans.

Learn the pattern first: the Two Pointers lesson.

More Two Pointers problems