Concept Flow - Unique Paths in Grid DP
Start at top-left cell
Initialize DP table with 1s in first row and column
For each cell (i,j) from (1,1) to (m-1,n-1)
Calculate dp[i
Fill DP table row by row
Result is dp[m-1
We fill a table where each cell shows how many ways to reach it from the start by summing ways from the top and left cells.
