Skip to content

Commit feb42c6

Browse files
Merge pull request #460 from liuwei20210312/develop
Update100. 20201003二叉树周末总结.md
2 parents abccf35 + abac363 commit feb42c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

problems/周总结/20201003二叉树周末总结.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ public:
4040
return isSame;
4141

4242
}
43-
bool isSymmetric(TreeNode* root) {
44-
if (root == NULL) return true;
45-
return compare(root->left, root->right);
43+
bool isSymmetric(TreeNode* p, TreeNode* q) {
44+
return compare(p, q);
4645
}
4746
};
4847
```

0 commit comments

Comments
 (0)