Update the chapter preface.

This commit is contained in:
krahets
2023-03-03 21:54:04 +08:00
parent 8c65345b76
commit ca261a8f46
7 changed files with 16 additions and 10 deletions

View File

@ -378,7 +378,7 @@
[class]{}-[func]{insert}
```
在链表中删除结点也很方便,只需要改变一个结点指针即可。如下图所示,虽然在完成删除后结点 `P` 仍然指向 `n2` ,但实际上 `P` 已经不属于此链表了,因为遍历此链表是无法访问到 `P` 的。
在链表中删除结点也很方便,只需要改变一个结点指针即可。如下图所示,虽然在完成删除后结点 `P` 仍然指向 `n1` ,但实际上 `P` 已经不属于此链表了,因为遍历此链表是无法访问到 `P` 的。
![链表删除结点](linked_list.assets/linkedlist_remove_node.png)