摘要: ``java public List<List> combinationSum(int[] candidates, int target) { List<List> ans = new ArrayList<>(); List combine = new ArrayList<>(); dfs(cand 阅读全文
posted @ 2022-02-01 20:18 明卿册 阅读(23) 评论(0) 推荐(0) 编辑
摘要: `private int m,n; private int[] dx = {-1, 0, 1, 0}; private int[] dy = {0, -1, 0, 1}; public int minPathSum(int[][] grid) { m = grid.length; n = grid[ 阅读全文
posted @ 2022-02-01 18:10 明卿册 阅读(22) 评论(0) 推荐(0) 编辑