Non-Overlapping Intervals
This is a greedy problem in interval scheduling disguise. Recognizing the greedy strategy — keep the interval with the earliest end time — is a key pattern in activity selection and scheduling optimization.
Enable JavaScript for the full StreamPrep guide.