From 76ad497f7d1809f5d89ea17463e2ecf25d2498e2 Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Mon, 17 Dec 2018 18:27:21 +0800 Subject: [PATCH] auto commit --- notes/Leetcode 题解.md | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) 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