在划水的土拨鼠很有气魄
在划水的土拨鼠很有气魄
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在划水的土拨鼠很有气魄的博客
全部文章
(共49篇)
题解 | #小猪摘水果#
//前缀和 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param fruit int整型vector * @return int整...
2024-03-21
0
170
题解 | #牛的品种排序II#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cows int整型vector * @return int整型vector...
2024-03-21
0
173
题解 | #用两个栈实现队列#
class Solution { public: void push(int node) { stack1.push(node); } int pop() { if (stack2.empty()) { while...
2024-03-21
0
154
题解 | #跳台阶#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param number int整型 * @return int整型 */ ...
2024-03-21
0
157
题解 | #牛的品种排序III#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cows int整型vector * @param k int整型 ...
2024-03-20
0
176
题解 | #牛的品种排序IV#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-03-20
0
198
题解 | #最大体重的牛#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param op string字符串vector * @param vals int整型...
2024-03-20
0
175
题解 | #删除链表峰值#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-03-20
0
141
题解 | #删除有序链表中重复的元素-I#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-03-19
0
208
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-03-19
0
167
首页
上一页
1
2
3
4
5
下一页
末页