Concept Flow - Unique Paths in Grid DP
Start at top-left cell (0,0)
Initialize DP table with 1s in first row and first column
For each cell (i,j) from (1,1) to (m-1,n-1)
Calculate dp[i
Repeat until bottom-right cell (m-1,n-1)
Return dp[m-1
We fill a table where each cell counts paths from start by adding paths from top and left cells, starting with 1s on top row and left column.
