CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
Sorting Techniques
Question 1 of 12
8% Complete
Medium
To merge overlapping intervals, what's the first step?
A
Sort intervals by start time
B
Sort intervals by end time
C
Use a heap to track intervals
D
Use two pointers without sorting
Need a hint?
Think about the order you process intervals