What should the dry run track?
Practice this question from Minimum Arrows to Burst Balloons - Interval End Greedy Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track arrowEnd, current start, and arrow count.
Option B
Only the final output, not the greedy state
Option C
The alphabetical order of variables
Option D
Only whether values are prime
Explanation
Track arrowEnd, current start, and arrow count.