mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-15 00:26:05 +00:00
build
This commit is contained in:
@@ -10,7 +10,7 @@ comments: true
|
||||
|
||||
链表的设计使得各个节点可以被分散存储在内存各处,它们的内存地址是无须连续的。
|
||||
|
||||

|
||||
{ class="animation-figure" }
|
||||
|
||||
<p align="center"> 图 4-5 链表定义与存储方式 </p>
|
||||
|
||||
@@ -405,7 +405,7 @@ comments: true
|
||||
|
||||
相比之下,在数组中插入元素的时间复杂度为 $O(n)$ ,在大数据量下的效率较低。
|
||||
|
||||

|
||||
{ class="animation-figure" }
|
||||
|
||||
<p align="center"> 图 4-6 链表插入节点示例 </p>
|
||||
|
||||
@@ -547,7 +547,7 @@ comments: true
|
||||
|
||||
请注意,尽管在删除操作完成后节点 `P` 仍然指向 `n1` ,但实际上遍历此链表已经无法访问到 `P` ,这意味着 `P` 已经不再属于该链表了。
|
||||
|
||||

|
||||
{ class="animation-figure" }
|
||||
|
||||
<p align="center"> 图 4-7 链表删除节点 </p>
|
||||
|
||||
@@ -1316,7 +1316,7 @@ comments: true
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
{ class="animation-figure" }
|
||||
|
||||
<p align="center"> 图 4-8 常见链表种类 </p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user