MOGUGU
MOGUGU
全部文章
分类
归档
标签
去牛客网
登录
/
注册
MOGUGU的博客
全部文章
(共15篇)
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> #include <set> using namespace std; multiset<int> m; void insertValue(int x){ //TODO 实现插入逻辑 m.inse...
2025-08-14
0
28
题解 | 【模板】集合操作
#include<bits/stdc++.h> #include <iterator> #include <set> using namespace std; set<int> s; void insertValue(int x){ //T...
2025-08-14
0
29
题解 | 机器翻译
#include <iostream> #include <queue> #include <unordered_set> #include <algorithm> using namespace std; int main() { int ...
2025-08-14
0
30
题解 | 队列消数
#include <queue> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param tickets int整型vector ...
2025-08-06
0
23
题解 | 队列消数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param tickets int整型vector * @param k int整型 ...
2025-08-06
0
34
题解 | 【模板】队列操作
#include <stdio.h> #include <stdbool.h> #define MAX_SIZE 100001 //循环队列 typedef struct { int data[MAX_SIZE]; int front; //队首指针 ...
2025-08-06
0
31
题解 | 验证栈序列
#include <cstdio> #include <iostream> #include <stack> #include <vector> using namespace std; bool isValidPopSequence(std::ve...
2025-08-05
0
30
题解 | 自动管理停车场桩位系统
class Solution { stack<int> stack_data; public: void push(int value) { stack_data.push(value); } void pop() { st...
2025-08-05
0
30
题解 | 栈和排序
#include <iostream> #include <climits> using namespace std; const int N = 1e6 + 10; int main() { int n = 0; int top = 0; int...
2025-08-05
0
29
题解 | 牛牛与后缀表达式
#include <stack> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 给定一个后缀表达式,返回它的结果 * @param str s...
2025-08-01
0
44
首页
上一页
1
2
下一页
末页