不愿吃饼的土拨鼠很爱交友
不愿吃饼的土拨鼠很爱交友
全部文章
分类
归档
标签
去牛客网
登录
/
注册
不愿吃饼的土拨鼠很爱交友的博客
全部文章
(共91篇)
题解 | #数据流中的中位数#
#include <functional> #include <queue> using namespace std; class Solution { // 让我想起了 min函数的栈 private: vector<double> bk; ...
2023-02-20
0
208
题解 | #最小的K个数#
class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { vector<int> res; //排除特...
2023-02-20
0
229
题解 | #有效括号序列#
class Solution { public: /** * * @param s string字符串 * @return(756076230) bool布尔型 */ bool isValid(string s) { // ...
2023-02-20
0
238
题解 | #包含min函数的栈# 官解
#include <climits> #include <bits/stdc++.h> class Solution { public: void push(int value) { stack1.push(value); ...
2023-02-19
0
206
题解 | #包含min函数的栈#
#include <climits> #include <bits/stdc++.h> class Solution { public: void push(int value) { stack1.push(value); ...
2023-02-19
0
239
题解 | #用两个栈实现队列# 更新注释 时间复杂度是O()
class Solution { // 熟悉 栈和队列的概念和性质 // 常用的操作 public: void push(int node) { stack1.push(node); // 就直接进入第一个栈 ...
2023-02-19
0
216
题解 | #用两个栈实现队列#
class Solution { // 熟悉 栈和队列的概念和性质 // 常用的操作 public: void push(int node) { stack1.push(node); // 就直接进入第一个栈 ...
2023-02-19
0
229
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-02-19
0
204
题解 | #链表中环的入口结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ...
2023-02-19
0
266
题解 | #判断链表中是否有环#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} ...
2023-02-17
0
255
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页