114.Unique Paths
1.Description(Easy)
A robot is located at the top-left corner of a mxn grid.
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid.
How many possible unique paths are there?
Notice
m and n will be at most 100.
Example
Given m =3
and n =3
, return6
.
Given m =4
and n =5
, return35
.
2.Code
坐标型动态规划(统计方案个数)
Last updated