All Categories

2-D Dynamic Programming

Two-variable DP for grids and strings.

Grid paths, string comparison, interval DP.

Key Concepts

Grid DP

dp[i][j] = paths to cell

String DP

Compare substrings with 2D table

Problems (11)