银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共214篇)
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-11
0
23
题解 | 链表相交
#include <bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} };...
2026-02-11
0
35
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-11
0
30
题解 | 序列链表化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-11
0
26
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-11
0
28
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-10
0
24
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-10
0
28
题解 | 两两交换链表中的结点
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-10
0
24
题解 | 小苯的比赛上分
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n,m; int a[N],b[N]; int main(){ ios::sync_with_stdio(false); cin.tie(...
2026-02-10
0
34
题解 | 两端问优先队列
#include<bits/stdc++.h> using namespace std; int n,op,x; multiset<int> mst; int main(){ ios::sync_with_stdio(false); cin.tie(0); c...
2026-02-10
0
22
首页
上一页
9
10
11
12
13
14
15
16
17
18
下一页
末页