Problem 435 · Medium

Non-overlapping Intervals

Find the fewest intervals to remove so the rest never overlap, with touching endpoints allowed. The visual sorts intervals by end time, keeps each one that starts after the last kept finish, and marks the ones that get dropped.

Open the interactive visualisation