许澄
许澄
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
许澄的博客
全部文章
(共5篇)
题解 | 合并k个已排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <list> #inclu...
2025-02-21
0
47
题解 | 链表中环的入口结点
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2025-02-21
1
48
题解 | 区间和
#include <iostream> #include <vector> using namespace std; int main() { int n, q; cin >> n >> q; vector<long l...
2025-02-20
1
46
题解 | 树的子结构
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2025-02-19
1
65
题解 | 数字和为sum的方法数
#include <iostream> #include <vector> using namespace std; int main() { int n, sum; cin >> n >> sum; vector<in...
C++
动态规划
2025-02-19
1
62