What should the dry run track?
Practice this question from Gas Station - Greedy Reset Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track total, local tank, and candidate start.
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 total, local tank, and candidate start.