File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9191 * [ 二叉树:我对称么?] ( https://mp.weixin.qq.com/s/Kgf0gjvlDlNDfKIH2b1Oxg )
9292 * [ 二叉树:看看这些树的最大深度] ( https://mp.weixin.qq.com/s/guKwV-gSNbA1CcbvkMtHBg )
9393 * [ 二叉树:看看这些树的最小深度] ( https://mp.weixin.qq.com/s/BH8-gPC3_QlqICDg7rGSGA )
94+ * [ 二叉树:我有多少个节点?] ( https://mp.weixin.qq.com/s/2_eAjzw-D0va9y4RJgSmXw )
95+ * [ 二叉树:我平衡么?] ( https://mp.weixin.qq.com/s/isUS-0HDYknmC0Rr4R8mww )
9496
9597
9698(持续更新中....)
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ public:
8989
9090 // 此时就是:左右节点都不为空,且数值相同的情况
9191 // 此时才做递归,做下一层的判断
92- bool outside = compare(left->left, right->right); // 左子树:左、 右子树:右
93- bool inside = compare(left->right, right->left); // 左子树:右、 右子树:左
92+ bool outside = compare(left->left, right->right); // 左子树:左、 右子树:左
93+ bool inside = compare(left->right, right->left); // 左子树:右、 右子树:右
9494 bool isSame = outside && inside; // 左子树:中、 右子树:中 (逻辑处理)
9595 return isSame;
9696
You can’t perform that action at this time.
0 commit comments