What should the dry run track?
Practice this question from Find First and Last Position - Boundary Binary Search Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track left boundary, right-exclusive boundary, and validation.
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 left boundary, right-exclusive boundary, and validation.