mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Update
This commit is contained in:
@ -75,7 +75,7 @@ void traversal(TreeNode* cur, vector<int>& vec) {
|
|||||||
traversal(cur->right, vec); // 右
|
traversal(cur->right, vec); // 右
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
中序遍历(中左右)
|
前序遍历(中左右)
|
||||||
```
|
```
|
||||||
void traversal(TreeNode* cur, vector<int>& vec) {
|
void traversal(TreeNode* cur, vector<int>& vec) {
|
||||||
if (cur == NULL) return;
|
if (cur == NULL) return;
|
||||||
|
Reference in New Issue
Block a user