sunnyl9520190925
sunnyl9520190925
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
sunnyl9520190925的博客
全部文章
(共2篇)
平衡二叉树
利用上一题求树深度的函数class Solution {public: bool IsBalanced_Solution(TreeNode* pRoot) { if(pRoot==nullptr) return true; if(TreeDepth(pRoot-&g...
2020-02-11
0
436
和为s的两个数字
以数组{1,2,4,7,11,13}和s=15为例。首先定义两个指针,第一个指针指向class Solution { public: vector<int> FindNumbersWithSum(vector<int> array, int sum) { ...
2020-01-28
0
642