Problem 757 · Hard

Set Intersection Size At Least Two

Sort by right end and greedily keep the two latest chosen points, adding the rightmost points needed.

Open the interactive visualisation