Week 6 · Day 40 of 42

Dynamic Programming: Grid Paths

dp[i][j] = ways/cost to reach cell (i,j). Transition from dp[i-1][j] and dp[i][j-1].

Checking access

Spotted a mistake on this page?

Wrong formula, broken animation or confusing wording. Tell us and we will fix it.