Fundamental Algorithms8 sections · 291 units
Open in CourseQuiz: Interval Problems
Test your understanding
Check Your Understanding
When merging overlapping intervals, why do you sort by start time first?
- A.It makes the output look cleaner
- B.It reduces time complexity from to
- C.After sorting, you only need to compare each interval with the previous one
- D.It ensures the algorithm uses less memory