牛客943400164号
牛客943400164号
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
牛客943400164号的博客
全部文章
(共3篇)
题解 | #螺旋矩阵#
class Solution { public: vector<int> spiralOrder(vector<vector<int> > &matrix) { vector<int>ret; if (matrix.empty(...
2021-08-11
0
319
题解 | #在二叉树中找到两个节点的最近公共祖先#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; ...
2021-08-11
0
233
题解 | #两个链表生成相加链表#
class Solution { public: ListNode* reverse(ListNode*root) { if (root == nullptr ||&nb...
2021-08-11
1
301