What should the dry run track?
Practice this question from Longest Common Subsequence - 2D DP Pattern Practice Quiz, with options and an explanation.
Question
What should the dry run track?
Option A — Correct answer
Track current row, previous row, and character matches.
Option B
Only the final answer, not the state transition
Option C
The alphabetical order of variable names
Option D
Only whether input contains duplicates
Explanation
Track current row, previous row, and character matches.