Puzzlemaster_Khadgar
Puzzlemaster_Khadgar
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Puzzlemaster_Khadgar的博客
全部文章
(共23篇)
题解 | 【模板】差分|非差分
#include<bits/stdc++.h> using namespace std; unordered_map<long long,long long> b; unordered_map<long long,long long> e; long long a...
2025-08-29
0
12
题解 | 小红的字符串修改
#include<bits/stdc++.h> using namespace std; vector<int> as; vector<int> As; vector<int> res; int main(){ string a,A; ...
2025-08-24
0
21
题解 | 生词篇章查询
#include<bits/stdc++.h> using namespace std; void prin(set<int> s){ while(!s.empty()){ cout<<*s.begin()<<" &q...
2025-08-17
0
16
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-17
0
22
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-17
0
17
题解 | 字母异位词的长度|c++
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @param c string字符串 ...
2025-08-16
0
23
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-16
0
19
题解 | 两两交换链表中的结点|偷懒直接交换val
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-16
0
21
题解 | 快乐数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return bool布尔型 */ ...
2025-08-16
0
20
题解 | 数对计数|迭代器
#include<bits/stdc++.h> using namespace std; multiset<int> s; int main(){ int n,c,counts=0; cin>>n>>c; while(n--){...
2025-08-16
0
18
首页
上一页
1
2
3
下一页
末页