Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfeb42c6

Browse files
Merge pull requestyoungyangyang04#460 from liuwei20210312/develop
Update100. 20201003二叉树周末总结.md
2 parentsabccf35 +abac363 commitfeb42c6

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-
boolisSymmetric(TreeNode* root) {
44-
if (root == NULL) return true;
45-
return compare(root->left, root->right);
43+
boolisSymmetric(TreeNode* p, TreeNode* q) {
44+
return compare(p, q);
4645
}
4746
};
4847
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp