费姣人
费姣人
全部文章
分类
归档
标签
去牛客网
登录
/
注册
费姣人的博客
全部文章
(共20篇)
题解 | 元素方碑
#include <iostream> #include <vector> using namespace std; const int MAXZ = 2e5 + 5; //先进行求和判断是否能能量相等(是否能被整除),如果可以,则判断进行轰击能否使能量相等 // 判断元素在...
2026-02-22
1
33
题解 | 小红的字符串修改
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; //将字符串S中的字母移动得到字符串t的子串(连续),求出...
2026-02-22
1
27
题解 | 玩家积分榜系统
#include <iostream> #include <unordered_map> #include <string> using namespace std; //利用哈希表键为玩家名,值为积分 unordered_map<string , int&...
2026-02-07
1
34
题解 | 字符串哈希
#include <iostream> #include <unordered_map> #include <unordered_set> #include <set> using namespace std; //利用哈希表法,将表中没有的字符串,放...
2026-02-05
1
36
题解 | 插队
#include <iostream> #include <unordered_map> using namespace std; //顾客人数n,每个人的名字,插队次数m,构建链表,有哨兵节点,进行链表间的插入,删除操作 struct ListNode { strin...
2026-02-03
1
36
题解 | 链表相交
#include <bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} };...
2026-02-03
1
39
题解 | 链表序列化
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-02
1
41
题解 | 移除链表元素
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2026-02-02
1
38
题解 | 宝石计数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param jewels string字符串 * @param stones strin...
2026-01-31
1
34
题解 | 【模板】集合操作
#include<bits/stdc++.h> using namespace std; set <int> s;//元素唯一,且从小到大排列,multiset则可重复,基于红黑树 void insertValue(int x){ //TODO 实现插入逻辑 ...
2026-01-30
1
35
首页
上一页
1
2
下一页
末页