intervals
Intervals
Greedy: Sort by ending points - Max num of non-overlapping intervals inside a range
757.Set-Intersection-Size-At-Least-Two
Greedy: Sort by starting points - Min num of intervals to cover the range
Sort either by start or endpoint
DP - TODO
Sweepline
Other
Template: Merge interval
OPTIONS 1: PriorityQueue
OPTIONS 2: Sort intervals by start and merge
OPTIONS 3: Sweepline
DP: 1235.Maximum-Profit-in-Job-Scheduling
Sort by start, based on whether selecting ith job or not
Sort by end, based on how many jobs has been completed
Greedy
Last updated