This commit is contained in:
krahets
2025-01-21 20:03:36 +08:00
parent f7cbcbbd75
commit c458348df2
11 changed files with 50 additions and 41 deletions

View File

@@ -504,6 +504,8 @@ comments: true
P->left = n2;
// 删除节点 P
n1->left = n2;
// 释放内存
delete P;
```
=== "Java"
@@ -609,6 +611,8 @@ comments: true
P->left = n2;
// 删除节点 P
n1->left = n2;
// 释放内存
free(P);
```
=== "Kotlin"