LincolnZhen
LincolnZhen
全部文章
分类
题解(14)
归档
标签
去牛客网
登录
/
注册
LincolnZhen的博客
全部文章
(共14篇)
题解 | #螺旋矩阵#
class Solution { public: vector<int> spiralOrder(vector<vector<int> > &matrix) { vector<int> res; int ...
C++
2021-09-21
0
257
题解 | #输出二叉树的右视图#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 求二叉树的右视图 * @param xianxu int整型vector 先序遍历 * @param zhong...
C++
2021-09-20
2
367
题解 | #最长公共子串#
class Solution { public: /** * longest common substring * @param str1 string字符串 the string * @param str2 string字符串 the string ...
C++
2021-09-18
0
323
题解 | #在二叉树中找到两个节点的最近公共祖先#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * ...
C++
2021-09-17
0
286
首页
上一页
1
2
下一页
末页