wwip
wwip
全部文章
分类
归档
标签
去牛客网
登录
/
注册
wwip的博客
全部文章
(共31篇)
题解 | #重建二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-03
1
180
题解 | #在二叉树中找到两个节点的最近公共祖先#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-03
1
182
题解 | #二叉搜索树的最近公共祖先#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-03
1
152
题解 | #判断是不是平衡二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-03
0
153
题解 | #判断是不是完全二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-03
0
176
题解 | #合并二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-02
0
179
题解 | #二叉搜索树与双向链表#
/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function inorder(pRootOfTree) { // 使用中序遍历 if (!...
2024-04-02
0
201
题解 | #二叉树的中序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-02
0
210
题解 | #二叉树的前序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2024-04-02
0
159
题解 | #旋转数组的最小数字#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @return int整型 */ function minNumberInRotateArray(nums) { // write c...
2024-03-31
0
178
首页
上一页
1
2
3
4
下一页
末页