What should the dry run track?
Practice this question from Jump Game - Farthest Reach Greedy Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track current index and farthest reachable index.
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 index and farthest reachable index.