You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
5
+
*
6
+
* 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 (marked 'Finish' in the diagram below).
7
+
*
8
+
* How many possible unique paths are there?
9
+
*
10
+
* ## Example
11
+
*
12
+
* ```bash
13
+
* Input: m = 3, n = 2
14
+
* Output: 3
15
+
* Explanation:
16
+
* From the top-left corner, there are a total of 3 ways to reach the bottom-right corner:
17
+
* 1. Right -> Right -> Down
18
+
* 2. Right -> Down -> Right
19
+
* 3. Down -> Right -> Right
20
+
* ```
21
+
* ```bash
22
+
* Input: m = 7, n = 3
23
+
* Output: 28
24
+
* ```
25
+
*
26
+
* ## Constraints
27
+
*
28
+
* - `1 <= m, n <= 100`
29
+
* - It's guaranteed that the answer will be less than or equal to `2 * 10 ^ 9`.
0 commit comments