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:
KawaiiAsh 2025-01-21 06:29:09 -05:00 committed by GitHub
parent aa8a7f59d3
commit 4db90555a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -493,6 +493,8 @@
P->left = n2;
// 删除节点 P
n1->left = n2;
// 释放内存
delete P;
```
=== "Java"
@ -598,6 +600,8 @@
P->left = n2;
// 删除节点 P
n1->left = n2;
// 释放内存
free(P);
```
=== "Kotlin"