Merge pull request #460 from liuwei20210312/develop

Update100. 20201003二叉树周末总结.md
This commit is contained in:
程序员Carl 2021-07-04 16:35:25 +08:00 committed by GitHub
commit feb42c6e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
};
```