Skip to content

Commit

Permalink
cm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojiedi committed Apr 17, 2022
1 parent a1dc0ae commit fc49545
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/code/bstree_link_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ BsTree DeleteByRecursive(ElementType item, BsTree bst) {
bst->Left = DeleteByRecursive(item,bst->Left);
}else{
// 左节点为空的删除
if (bst->Left == NULL ){
if (!bst->Left ){
bst = bst->Right;
}else if (bst->Right ==NULL){ // 右节点为空。
}else if (!bst->Right){ // 右节点为空。
bst = bst->Left ;
}else{
// 左右都有的。
Expand Down
Binary file not shown.
Binary file modified source/code/cmake-build-debug/code
Binary file not shown.
2 changes: 1 addition & 1 deletion source/基本数据结构/05-树和二叉树.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
:language: c
:linenos:

二叉树顺序存储实现
二叉树链式存储实现
==========================================

.. literalinclude:: ../code/bitree_link_base.h
Expand Down

0 comments on commit fc49545

Please sign in to comment.