无名wooming
无名wooming
全部文章
分类
归档
标签
去牛客网
登录
/
注册
无名wooming的博客
全部文章
(共6篇)
题解 | 删除有序链表中重复的元素-II
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-11-28
0
60
题解 | 链表中的节点每k个一组翻转
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-11-28
0
64
题解 | 链表内指定区间反转
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <bits/types/struct_...
2025-11-27
0
58
题解 | 合并k个已排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <set> class S...
2025-11-27
0
54
题解 | 滑动窗口的最大值
#include <climits> #include <deque> #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 ...
2025-11-25
0
53
题解 | 用两个栈实现队列
class Solution { public: void push(int node) { while (!stack2.empty()) { stack1.push(stack2.top()); stack2.pop(); ...
2025-11-25
0
54