mirror of
https://github.com/krahets/hello-algo.git
synced 2026-06-14 22:26:38 +08:00
build
This commit is contained in:
@@ -17,6 +17,7 @@ comments: true
|
||||
- **添加元素**:仅需将元素添加至数组(链表)的尾部即可,使用 $O(1)$ 时间。
|
||||
- **查询元素**:由于数组(链表)是乱序的,因此需要遍历其中的所有元素,使用 $O(n)$ 时间。
|
||||
- **删除元素**:需要先查询到元素,再从数组中删除,使用 $O(n)$ 时间。
|
||||
<p align="center"> 表:元素查询效率对比 </p>
|
||||
|
||||
<div class="center-table" markdown>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user