Week 6 · Day 39 of 42
Dynamic Programming: Longest Common Subsequence / String DP
Compare two sequences with a 2D table. dp[i][j] = answer for s1[:i] and s2[:j].
Checking access
Spotted a mistake on this page?
Wrong formula, broken animation or confusing wording. Tell us and we will fix it.