tendance
tendance
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
tendance的博客
要一直勇敢下去
全部文章
(共30篇)
题解 | #字符串的排列#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return string字符串vecto...
C++
2022-07-15
0
305
题解 | #判断是不是完全二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), righ...
C++
2022-07-12
0
323
题解 | #二叉树的镜像#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), righ...
C++
2022-07-12
1
352
题解 | #矩阵的最小路径和#
class Solution { public: /** * * @param matrix int整型vector<vector<>> the matrix * @return int整型 */ int minPat...
C++
2022-07-10
1
362
题解 | #最长公共子串#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * longest common substring * @param str1 string字符串 the s...
C++
2022-07-10
0
257
题解 | #合并二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * ...
C++
2022-07-09
0
223
题解 | #按之字形顺序打印二叉树#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
C++
2022-07-09
0
293
题解 | #缺失的第一个正整数#
class Solution { public: int minNumberDisappeared(vector<int>& nums) { // write code here unordered_map<int,int>m...
C++
2022-07-08
0
248
题解 | #两数之和#
class Solution { public: /** * * @param numbers int整型vector * @param target int整型 * @return int整型vector */ vector&...
C++
2022-07-08
0
249
题解 | #不同路径的数目(一)#
class Solution { public: /** * * @param m int整型 * @param n int整型 * @return int整型 */ int uniquePaths(int m, int n) ...
C++
2022-07-07
0
230
首页
上一页
1
2
3
下一页
末页