摘要: 题目描述: 思路: 对两个数字字符串从字符串的最后一位(数字的最低位)相加,统计进位情况,具体实现如下所示: 代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 class Solution { 5 public: 6 string a 阅读全文
posted @ 2021-04-02 15:22 谁在写西加加 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 class Solution { 4 public: 5 bool isBalanced(TreeNode* root) 6 { 7 int h = 0; 8 return i 阅读全文
posted @ 2021-04-02 10:32 谁在写西加加 阅读(27) 评论(0) 推荐(0) 编辑