mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 14:20:29 +08:00
Fix the bst python code.
Fitune the chapters name.
This commit is contained in:
parent
9611a8f135
commit
98e797f1fc
@ -119,7 +119,7 @@ class BinarySearchTree:
|
||||
pre.right = child
|
||||
else:
|
||||
# 若删除节点为根节点,则重新指定根节点
|
||||
self.__root = cur
|
||||
self.__root = child
|
||||
# 子节点数量 = 2
|
||||
else:
|
||||
# 获取中序遍历中 cur 的下一个节点
|
||||
|
@ -134,13 +134,13 @@ nav:
|
||||
- 1.1. 算法无处不在: chapter_introduction/algorithms_are_everywhere.md
|
||||
- 1.2. 算法是什么: chapter_introduction/what_is_dsa.md
|
||||
- 1.3. 小结: chapter_introduction/summary.md
|
||||
- 2. 复杂度分析:
|
||||
- 2. 复杂度:
|
||||
- chapter_computational_complexity/index.md
|
||||
- 2.1. 算法效率评估: chapter_computational_complexity/performance_evaluation.md
|
||||
- 2.2. 时间复杂度: chapter_computational_complexity/time_complexity.md
|
||||
- 2.3. 空间复杂度: chapter_computational_complexity/space_complexity.md
|
||||
- 2.4. 小结: chapter_computational_complexity/summary.md
|
||||
- 3. 数据结构简介:
|
||||
- 3. 数据结构:
|
||||
- chapter_data_structure/index.md
|
||||
- 3.1. 数据结构分类: chapter_data_structure/classification_of_data_structure.md
|
||||
- 3.2. 基本数据类型: chapter_data_structure/basic_data_types.md
|
||||
|
Loading…
Reference in New Issue
Block a user