mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
更新了,20201003二叉树周末总结.md
This commit is contained in:
@ -40,9 +40,8 @@ public:
|
|||||||
return isSame;
|
return isSame;
|
||||||
|
|
||||||
}
|
}
|
||||||
bool isSymmetric(TreeNode* root) {
|
bool isSymmetric(TreeNode* p, TreeNode* q) {
|
||||||
if (root == NULL) return true;
|
return compare(p, q);
|
||||||
return compare(root->left, root->right);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user