What should the dry run track?
Practice this question from Merge Intervals - Sort and Sweep Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track the last merged interval and current interval.
Option B
Only the final answer, not boundaries or swaps
Option C
The alphabetical order of variable names
Option D
Only whether values are negative
Explanation
Track the last merged interval and current interval.