mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Update 0063.不同路径II.md
修正typescript方法2的函數名稱
This commit is contained in:
@ -552,7 +552,7 @@ function uniquePathsWithObstacles(obstacleGrid: number[][]): number {
|
|||||||
|
|
||||||
// 版本二: dp改為使用一維陣列,從終點開始遍歷
|
// 版本二: dp改為使用一維陣列,從終點開始遍歷
|
||||||
```typescript
|
```typescript
|
||||||
function uniquePathsWithObstacles2(obstacleGrid: number[][]): number {
|
function uniquePathsWithObstacles(obstacleGrid: number[][]): number {
|
||||||
const m = obstacleGrid.length;
|
const m = obstacleGrid.length;
|
||||||
const n = obstacleGrid[0].length;
|
const n = obstacleGrid[0].length;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user