冷意
冷意
全部文章
分类
归档
标签
去牛客网
登录
/
注册
冷意的博客
全部文章
(共170篇)
题解 | 两数之和
#include <unordered_map> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 &nb...
2025-06-08
0
49
题解 | 插队
#include <iostream> #include <list> #include <string> #include <unordered_map> using namespace std; int main() { int n, m...
2025-06-08
0
32
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <vector> clas...
2025-06-08
0
28
题解 | 链表相交
#include <bits/stdc++.h> #include <unordered_set> using namespace std; struct ListNode { int val; ListNode* next; ListNode(in...
2025-06-08
0
35
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
20
题解 | 序列链表化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
33
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <vector> clas...
2025-06-08
0
24
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
25
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
23
题解 | 两两交换链表中的结点
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-06-08
0
34
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页