Skip to main content

Pattern 4: String DP Problems

The Alignment Pattern: Compare two sequences character by character. State is dp[i][j] = answer for first i chars of string1 and first j chars of string2. ~10% of DP interview problems.