What is the goal of Merge Intervals?
Practice this question from Merge Intervals - Sort and Sweep Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Merge Intervals?
Option A — Correct answer
Merge all overlapping intervals.
Option B
Count graph components only
Option C
Build a frequency table only
Option D
Reverse a linked list only
Explanation
Merge all overlapping intervals.