TeezeeK
TeezeeK
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
TeezeeK的博客
全部文章
(共15篇)
题解 | #指纹锁#
这道题的意思很容易理解 这里会使用到c++ set中的lower_bound和upper_bound来帮助我们寻找需要的值的范围 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio...
C++
2026-05-13
0
16
题解 | 表达式求值
#include <iostream> #include <stack> #include <unordered_map> using namespace std; class Solution { public: /** * 代码中的类名...
2026-04-22
0
30
题解 | 字符串构造判定
#include <unordered_map> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param ransomNote s...
2026-04-02
0
55
题解 | 字母异位词的长度
#include <map> #include <string> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @para...
2026-03-31
0
63
题解 | 字母异位词的长度
#include <map> #include <string> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @para...
2026-03-31
0
57
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <stack> class So...
2026-03-25
0
62
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { pu...
2026-03-23
0
57
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> using namespace std; multiset<int> m; void insertValue(int x){ //TODO 实现插入逻辑 m.insert(x); } void eraseV...
2026-03-11
1
70
题解 | 有效括号序列
#include <bits/stdc++.h> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 ...
2026-03-10
1
64
题解 | 【模板】队列操作
#include <bits/stdc++.h> #include <iostream> #include <queue> using namespace std; int main() { queue<int> q; int n; cin&...
2026-03-10
1
63
首页
上一页
1
2
下一页
末页