更新了,20201003二叉树周末总结.md
This commit is contained in:
parent
e2d8c0a1cd
commit
abac363863
|
|
@ -40,9 +40,8 @@ public:
|
|||
return isSame;
|
||||
|
||||
}
|
||||
bool isSymmetric(TreeNode* root) {
|
||||
if (root == NULL) return true;
|
||||
return compare(root->left, root->right);
|
||||
bool isSymmetric(TreeNode* p, TreeNode* q) {
|
||||
return compare(p, q);
|
||||
}
|
||||
};
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue