Unique Paths
A robot sits in the top-left cell of an m x n grid. It can move only **right** or **down**, one cell at a time, and wants to reach the bottom-right cell.
Return the number of distinct paths the robot can take.
Example cases
- 3x7 gridin m = 3, n = 7out 28
- 3x2 gridin m = 3, n = 2out 3Down-down-right, down-right-down, right-down-down.
- 1x1 gridin m = 1, n = 1out 1Already at the destination.
Constraints
- 1 <= m, n <= 100
- The answer fits in a 32-bit signed integer.
m =
3
n =
7