蒟蒻的菜狗
蒟蒻的菜狗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
蒟蒻的菜狗的博客
TA的专栏
0篇文章
0人订阅
蒟蒻的错题集
0篇文章
0人学习
全部文章
(共52篇)
题解 | #比较版本号#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 比较版本号 * @param version1 string字符串 * @param version2 string字符串 * @return int整型 */ function comp...
2023-04-23
0
221
题解 | BM21 旋转数组的最小数字
function minNumberInRotateArray(rotateArray) { // write code here let temp = []; function getMin(l, r) { if (l == r) { ...
2023-04-23
0
280
题解 | BM20 数组中的逆序对
function InversePairs(data) { // write code here let mod = 1000000007; let temp = []; function mergeNode(l, r) { // 停止划分 ...
2023-04-23
0
262
题解 | BM19 寻找峰值
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @return int整型 */ function findPeakElement(nums) { // write code her...
2023-04-21
0
232
题解 | BM17 二分查找-I
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param target int整型 * @return int整型 */ function search(nums, target...
2023-04-21
0
341
题解 | BM16 删除有序链表中重复的元素-II
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 * @return ListNode类 */ functio...
2023-04-21
0
232
题解 | BM13 判断一个链表是否为回文结构
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 the head * @return bool布尔型 */ funct...
2023-04-20
0
275
题解 | BM11 链表相加(二)
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head1 ListNode类 * @param head2 ListNode类 * @retu...
2023-04-20
0
233
题解 | BM5 合并k个已排序的链表
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param lists ListNode类一维数组 * @return ListNode类 */ functi...
2023-04-14
0
245
题解 | BM2 链表内指定区间反转
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 * @param m int整型 * @param n int整型 *...
2023-04-11
0
215
首页
上一页
1
2
3
4
5
6
下一页
末页