What should the dry run track?
Practice this question from Search a 2D Matrix - Flattened Binary Search Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track l, r, mid, row, col, and value.
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 l, r, mid, row, col, and value.