Problem 2848 · Easy

Points That Intersect With Cars

Mark each car interval with a difference array, then sweep the points and count those with a positive running total.

Open the interactive visualisation