在划水的土拨鼠很有气魄
在划水的土拨鼠很有气魄
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在划水的土拨鼠很有气魄的博客
全部文章
(共49篇)
题解 | #最小花费爬楼梯#
//顶楼是n class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cost int整型vector * @return int整...
2024-03-24
0
205
题解 | #斐波那契数列#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return int整型 */ in...
2024-03-24
0
185
题解 | #二叉树的后序遍历#
//后序遍历 /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nul...
2024-03-24
0
209
题解 | #二叉树的中序遍历#
//中序遍历 /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nul...
2024-03-24
0
204
题解 | #二叉树的前序遍历#
//前序遍历 /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nul...
2024-03-24
0
193
题解 | #链表相加(二)#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-03-24
0
193
题解 | #数组中的逆序对#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2024-03-23
0
222
题解 | #快速乘#
#include <iostream> using namespace std; int main() { int q; long long int a, b, p; cin >> q; while(q--) { ci...
2024-03-22
0
165
题解 | #快速幂#
//快速幂模板 #include <iostream> using namespace std; int main() { long long int q, a, b, p; cin >> q; while (q--) { cin &g...
2024-03-22
0
180
题解 | #排序#
//快速排序模板 class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 将给定数组排序 * @param arr int整型vector 待排序的数组 ...
2024-03-22
0
195
首页
上一页
1
2
3
4
5
下一页
末页