What should the dry run track?
Practice this question from Partition Labels - Last Occurrence Greedy Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track current start, current end, and last occurrence map.
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 current start, current end, and last occurrence map.