mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-25 01:27:13 +00:00
Update binary_tree.md (#1618)
* Update binary_tree.md * Update binary_tree.md Thank you for the fix! --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -493,6 +493,8 @@
|
|||||||
P->left = n2;
|
P->left = n2;
|
||||||
// 删除节点 P
|
// 删除节点 P
|
||||||
n1->left = n2;
|
n1->left = n2;
|
||||||
|
// 释放内存
|
||||||
|
delete P;
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Java"
|
=== "Java"
|
||||||
@@ -598,6 +600,8 @@
|
|||||||
P->left = n2;
|
P->left = n2;
|
||||||
// 删除节点 P
|
// 删除节点 P
|
||||||
n1->left = n2;
|
n1->left = n2;
|
||||||
|
// 释放内存
|
||||||
|
free(P);
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Kotlin"
|
=== "Kotlin"
|
||||||
|
|||||||
Reference in New Issue
Block a user