Medium2-D DPNeetCode 150 · #112/150
Longest Common Subsequence
- 1Learn the pattern
Grid or two-string problems → table where cell (i,j) answers the prefix subproblem. Fill row by row.
- 2Watch it run
See this exact pattern animated step by step before you touch the keyboard.
Open visualizer - 3