Problem 986 · Medium

Interval List Intersections

Two sorted lists of disjoint intervals: walk both with two pointers and keep each overlap.

Open the interactive visualisation