Update
This commit is contained in:
parent
f36d2a1bc2
commit
808f2f3e8d
|
|
@ -75,7 +75,7 @@ void traversal(TreeNode* cur, vector<int>& vec) {
|
|||
traversal(cur->right, vec); // 右
|
||||
}
|
||||
```
|
||||
中序遍历(中左右)
|
||||
前序遍历(中左右)
|
||||
```
|
||||
void traversal(TreeNode* cur, vector<int>& vec) {
|
||||
if (cur == NULL) return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue