简20180711000791
简20180711000791
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
简20180711000791的博客
全部文章
(共15篇)
题解 | #二叉树的镜像#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-23
0
110
题解 | #合并二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-23
0
136
题解 | #对称的二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-21
0
104
题解 | #二叉树中和为某一值的路径(一)#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 思路: * 1. 确认临界条件 * 2. 模拟一条链路,塑造递归 * 3...
2023-09-21
0
85
题解 | #二叉树的最大深度#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-21
0
119
题解 | #二叉树的最大深度#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-20
0
132
题解 | #按之字形顺序打印二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-20
0
132
题解 | #求二叉树的层序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-09-20
0
139
题解 | #二叉树的后序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 后序遍历:左子树 右子树 根 */ function traversal(...
2023-09-20
0
149
题解 | #二叉树的中序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 中序遍历:左子树 根 右子树 */ function traversal(...
2023-09-20
0
176
首页
上一页
1
2
下一页
末页