Hzu_Lai
Hzu_Lai
全部文章
题解
Git(4)
idea(1)
linux(2)
mybatis(2)
未归档(1)
归档
标签
去牛客网
登录
/
注册
属于aYong的博客
来者是客
全部文章
/ 题解
(共2篇)
题解 | #二叉树中和为某一值的路径(三)#
来自专栏
稍微复杂了些,将就看吧-_- import java.util.*; public class Solution { private int res=0; public void dfs(TreeNode root,ArrayList<Integer> sums,int target)...
Java
二叉树
深度优先搜索
递归
dfs
2022-02-22
0
463
题解 | #二叉树的镜像#
来自专栏
dfs递归遍历二叉树,从底向上依次交换各个节点的左右子节点,生成镜像二叉树 public class Solution { public TreeNode Mirror (TreeNode pRoot) { // write code here if(pRoot==null || (...
Java
递归
深度优先搜索
2022-02-18
3
425