Skip to content

Commit

Permalink
fix(tree): add c codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reanon committed Jan 16, 2023
1 parent b1c69a9 commit ea0a8c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codes/c/chapter_tree/avl_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ TreeNode *removeHelper(TreeNode *node, int val) {
}

/* 删除结点 */
// 由于引入了 stdio.h ,此处无法使用 remove 关键词
TreeNode *removeNode(avlTree *tree, int val) {
TreeNode *root = removeHelper(tree->root, val);
return root;
Expand Down

0 comments on commit ea0a8c2

Please sign in to comment.