冷意
冷意
全部文章
分类
归档
标签
去牛客网
登录
/
注册
冷意的博客
全部文章
(共69篇)
题解 | 插队
#include <iostream> #include <list> #include <string> #include <unordered_map> using namespace std; int main() { int n, m...
2025-06-08
0
7
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <vector> clas...
2025-06-08
0
6
题解 | 链表相交
#include <bits/stdc++.h> #include <unordered_set> using namespace std; struct ListNode { int val; ListNode* next; ListNode(in...
2025-06-08
0
6
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
5
题解 | 序列链表化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
6
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <vector> clas...
2025-06-08
0
7
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
6
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
6
题解 | 两两交换链表中的结点
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
5
题解 | 两端问优先队列
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; multiset<int> s;...
2025-06-07
0
7
首页
上一页
1
2
3
4
5
6
7
下一页
末页