牛客209718638号
牛客209718638号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客209718638号的博客
全部文章
(共8篇)
题解 | 旋转数组的最小数字
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2025-04-26
0
19
题解 | 数组中的逆序对
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2025-04-26
0
17
题解 | 寻找峰值
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2025-04-25
0
15
题解 | 二分查找-I
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-04-25
1
18
题解 | 删除有序链表中重复的元素-II
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-04-25
0
14
题解 | 删除有序链表中重复的元素-I
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-04-25
0
14
题解 | 链表的奇偶重排
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-04-25
0
16
题解 | 单链表的排序
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-04-25
0
18