城城城<
城城城<
全部文章
分类
归档
标签
去牛客网
登录
/
注册
城城城<的博客
全部文章
(共74篇)
题解 | #二叉树中和为某一值的路径(二)#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2023-05-18
0
210
题解 | #从上往下打印二叉树#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ #inclu...
2023-05-18
0
270
题解 | #树的子结构#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2023-05-18
0
198
题解 | #按之字形顺序打印二叉树#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
2023-05-18
0
215
题解 | #字符串的排列#
class Solution { public: vector<string> Permutation(string str) { vector<string> ans; if(str.size()==0){ r...
2023-05-18
0
261
题解 | #把二叉树打印成多行#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
2023-05-17
0
178
题解 | #两个链表的第一个公共结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* FindF...
2023-05-17
0
195
题解 | #二叉搜索树的第k个节点#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-05-17
0
213
题解 | #二叉树中和为某一值的路径(一)#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @...
2023-05-17
0
189
题解 | #求1+2+3+...+n#
class Solution { public: int Sum_Solution(int n) { n&&(n+=Sum_Solution(n-1)); return n; } };
2023-05-17
0
224
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页