牛客178374109号
牛客178374109号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客178374109号的博客
全部文章
(共36篇)
题解 | #不同路径的数目(一)#
/** * * @param m int整型 * @param n int整型 * @return int整型 */ function uniquePaths( m , n ) { // write code here let dp = [] dp...
2023-04-01
0
114
题解 | #三数之和#
/** * * @param num int整型一维数组 * @return int整型二维数组 */ function threeSum( num ) { // write code here let res = [] let newNum = num.sort...
2023-03-31
0
119
题解 | #数组中只出现一次的两个数字#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param array int整型一维数组 * @return int整型一维数组 */ function FindNumsAppearOnce( array ) { // w...
2023-03-30
0
206
题解 | #数组中出现次数超过一半的数字#
function MoreThanHalfNum_Solution(numbers) { // write code here let length =numbers.length/2 const map = new Map() let count = 1 f...
2023-03-30
0
94
题解 | #判断是不是完全二叉树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-03-24
0
154
题解 | #判断是不是二叉搜索树#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-03-24
0
167
题解 | #二叉树的镜像#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-03-24
0
160
题解 | #按之字形顺序打印二叉树#
/* function TreeNode(x) { this.val = x; this.left = null; this.right = null; } */ function Print(pRoot) { // write code here //先遍历...
2023-03-21
0
175
题解 | #求二叉树的层序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * * @param root TreeNode类 * @return in...
2023-03-21
0
177
题解 | #二叉树的后序遍历#
/* * function TreeNode(x) { * this.val = x; * this.left = null; * this.right = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 *...
2023-03-21
1
153
首页
上一页
1
2
3
4
下一页
末页