Hard2-D DPNeetCode 150 · #118/150
Distinct Subsequences
- 1Learn the pattern
Grid or two-string problems → table where cell (i,j) answers the prefix subproblem. Fill row by row.
- 2Trace your version
Paste your solution into the workspace and watch every step execute.
Open workspace - 3