Fork me on GitHub
摘要: 1. 深度优先遍历 使用场景:常见于各种组合,树遍历,前序遍历、中序遍历、后续遍历 private void dfs(int[] arr, int target,int begin, Deque<Integer> path, Set<List<Integer>> res) { if ( path.s 阅读全文
posted @ 2020-10-24 23:05 龙城飞将军 阅读(189) 评论(0) 推荐(0) 编辑