Question DSA-TP-0075
HardMerging intervals after sorting by start uses which idea?
- A.
A single pointer to the last merged interval, extended while the next start ≤ its end
- B.
Two heaps
- C.
Sign up free to see the answer and a step-by-step explanation.