摘要: 和unique path一样的 1 public int minPathSum(int[][] grid) { 2 if(grid == null || grid.length == 0 || grid[0].length == 0) { 3 return 0; 4 } 5 int len = gr 阅读全文
posted @ 2016-03-10 08:40 warmland 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 和Unique paths是一样的 1 public int uniquePathsWithObstacles(int[][] obstacleGrid) { 2 if(obstacleGrid == null || obstacleGrid.length == 0 || obstacleGrid[ 阅读全文
posted @ 2016-03-10 00:04 warmland 阅读(105) 评论(0) 推荐(0) 编辑