湮雨
湮雨
全部文章
分类
归档
标签
去牛客网
登录
/
注册
湮雨的博客
全部文章
(共90篇)
题解 | 删除有序链表中重复的元素-II
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <set> #include&l...
2025-06-13
0
23
题解 | 删除有序链表中重复的元素-I
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <set> class Solu...
2025-06-13
0
24
题解 | 链表的奇偶重排
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-06-13
0
24
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-06-13
0
27
题解 | 单链表的排序
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-06-13
0
25
题解 | 链表相加(二)
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-06-13
0
21
题解 | 矩阵最长递增路径
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 递增路径的最大长度 * @param matrix int整...
2025-06-11
0
29
题解 | 括号生成
#include <string> #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @pa...
2025-06-11
0
30
题解 | 数据流中的中位数
官方插入排序解法 #include <vector> class Solution { public: void Insert(int num) { int i = 0; //遍历找到插入点 for(; i < val.siz...
2025-05-29
0
45
题解 | 包含min函数的栈
根据题解的思路实现 #include <climits> #include <stack> class Solution { public: void push(int value) { if(stack.empty()){ s...
2025-05-28
0
28
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页