mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Update README.md
This commit is contained in:
@@ -11,7 +11,6 @@ int *arr;
|
||||
|
||||
/* 前序遍历 */
|
||||
void preOrder(TreeNode *root, int *size) {
|
||||
|
||||
if (root == NULL) return;
|
||||
// 访问优先级:根结点 -> 左子树 -> 右子树
|
||||
arr[(*size)++] = root->val;
|
||||
|
||||
Reference in New Issue
Block a user