We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d36c5 commit 9468b3bCopy full SHA for 9468b3b
binary_tree.md
@@ -113,7 +113,7 @@
113
114
最终形成下图的树
115
116
-
+
117
118
**遍历树**
119
@@ -219,13 +219,13 @@
219
220
root.delete(14)
221
222
-
+
223
224
例3:来个复杂的,删除节点数据为3的节点,它下面有两个节点,而节点6下面又有两个4,7。需要一个临时变量successor,将节点3下面的子节点进行查询,并把小于3下面的第一级子节点6左测节点数据4(该数据一定小于其父节点6)替换当前节点3,维持二叉树结构。如下图:
225
226
root.delete(3)
227
228
-
+
229
230
**比较两个二叉树**
231
0 commit comments