LeetCode Question · Oct 2022 · Los Angeles

Bloomberg | Non Overlapping Intervals

1,540 views 7 replies

Question Details

Given a collection of intervals, return a maximal set of non-overlapping intervals while prioritising the longer intervals. input - (1,5),(2,7),(11,18) output - (11, 18), (2, 7) Any ideas?

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding