63. Unique Paths II
Medium
Input: obstacleGrid = [[0,0,0],[0,1,0],[0,0,0]]
Output: 2
Explanation: There is one obstacle in the middle of the 3x3 grid above.
There are two ways to reach the bottom-right corner:
1. Right -> Right -> Down -> Down
2. Down -> Down -> Right -> RightInput: obstacleGrid = [[0,1],[0,0]]
Output: 1Solution 1 : Using Dictionary
Solution 2 : With In-Built @lru_cache
Last updated

