牛客768685351号
牛客768685351号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客768685351号的博客
全部文章
/ 题解
(共160篇)
题解 | #重复的DNA序列#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param DNA string字符串 1 * @return string字符串vect...
C++
2022-03-12
0
438
题解 | #和为K的连续子数组#
class Solution { public: /** * 栈排序 * @param a int整型一维数组 描述入栈顺序 * @param aLen int a数组长度 * @return int整型vector */ vecto...
C++
2022-03-12
1
393
题解 | #从下到上打印二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
C++
2022-03-10
0
387
题解 | #三角形最小路径和#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param triangle int整型vector<vector<>> ...
C++
2022-03-10
7
464
题解 | #集合的所有子集(二)#
class Solution { private: vector<int> path; vector<vector<int>> res; public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定...
C++
2022-03-09
0
318
题解 | #编辑距离(一)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str1 string字符串 * @param str2 string字符串...
C++
2022-03-09
0
328
题解 | #最小花费爬楼梯#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cost int整型vector * @return int整型 ...
C++
2022-03-09
1
322
题解 | #判断是不是完全二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
C++
2022-03-09
5
693
题解 | #判断是不是二叉搜索树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
C++
2022-03-09
1
412
题解 | #01背包#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 计算01背包问题的结果 * @param V int整型 背包的体积 * @param n int整型 物品的个...
C++
2022-03-08
0
340
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页