wjp_
wjp_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
wjp_的博客
全部文章
(共25篇)
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-04
0
45
题解 | 反转链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-04
0
45
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2025-08-01
0
61
题解 | 小苯的比赛上分
#include <iostream> #include <set> #include <vector> using namespace std; int main() { multiset<int> heap; int n,m; c...
2025-08-01
0
34
题解 | 两端问优先队列
#include <iostream> #include<set> #include <sys/types.h> using namespace std; int main() { multiset<int> heap; int n;...
2025-08-01
0
38
题解 | 字符串优先队列
#include<bits/stdc++.h> using namespace std; priority_queue<string, vector<string>, greater<string>> s; void insertValue(strin...
2025-08-01
0
42
题解 | 两数之和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2025-08-01
0
38
题解 | 宝石计数
#include <csetjmp> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param jewels string字符串 ...
2025-07-30
1
54
题解 | 快乐数
#include <string> static int circle = 0; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @pa...
2025-07-30
0
39
题解 | 数对计数
#include <iostream> #include <set> #include <vector> #include <algorithm> using namespace std; int main() {// 两层for循环不要用了,会超时...
2025-07-30
3
55
首页
上一页
1
2
3
下一页
末页