谜一样的Andy
谜一样的Andy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
谜一样的Andy的博客
全部文章
(共43篇)
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <stack> class So...
2025-10-22
0
31
题解 | 链表相交
#include <bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} };...
2025-10-22
0
24
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-10-22
0
27
题解 | 序列链表化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-10-22
0
24
题解 | 两两交换链表中的结点
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(nullptr) {} }; */ class Solution { public: /** *...
2025-10-22
0
27
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <vector> class S...
2025-10-22
0
19
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-10-22
0
30
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-10-22
0
24
题解 | 小苯的比赛上分
#include <bits/stdc++.h> #include <set> using namespace std; multiset<int>M;int n,m,x,temp; int main(){ cin>>n>>m; ...
2025-10-17
1
30
题解 | 两端问优先队列
#include <bits/stdc++.h> #include <set> using namespace std; multiset<int>m;int n,op,x; int main(){ cin>>n; for (int i...
2025-10-17
0
39
首页
上一页
1
2
3
4
5
下一页
末页