A robot on an m × n grid starts at top-left and moves to bottom-right. It can only move right or down. Return the number of unique paths.
m = 3, n = 728m = 3, n = 36To reach (r,c) you must come from (r-1,c) or (r,c-1). So paths[r][c] = paths from above + paths from left. First row and column are 1 (one straight path). Fill top-to-bottom, left-to-right so dependencies are ready.