diff --git a/notes/Leetcode 题解.md b/notes/Leetcode 题解.md index 281bae0a..e68d7582 100644 --- a/notes/Leetcode 题解.md +++ b/notes/Leetcode 题解.md @@ -2544,31 +2544,25 @@ Given the above grid map, return 7. Because the path 1→3→1→1→1 minimizes ```java public int minPathSum(int[][] grid) { - if (grid.length==0 || grid[0].length == 0) { - return 0; - } - int m = grid.length, n = grid[0].length; - int[] dp = new int[n]; - for(int i =0;i