mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 10:09:54 +08:00
deploy
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
<div data-md-component="skip">
|
||||
|
||||
|
||||
<a href="#43" class="md-skip">
|
||||
<a href="#43-list" class="md-skip">
|
||||
跳转至
|
||||
</a>
|
||||
|
||||
@@ -682,7 +682,7 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../linked_list/" class="md-nav__link">
|
||||
4.2. 链表(LinkedList)
|
||||
4.2. 链表(Linked List)
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -920,7 +920,7 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../chapter_hashing/hash_map/" class="md-nav__link">
|
||||
6.1. 哈希表(HashMap)
|
||||
6.1. 哈希表(Hash Map)
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -1587,7 +1587,7 @@
|
||||
|
||||
|
||||
|
||||
<h1 id="43">4.3. 列表<a class="headerlink" href="#43" title="Permanent link">¶</a></h1>
|
||||
<h1 id="43-list">4.3. 列表(List)<a class="headerlink" href="#43-list" title="Permanent link">¶</a></h1>
|
||||
<p><strong>由于长度不可变,数组的实用性大大降低</strong>。在很多情况下,我们事先并不知道会输入多少数据,这就为数组长度的选择带来了很大困难。长度选小了,需要在添加数据中频繁地扩容数组;长度选大了,又造成内存空间的浪费。</p>
|
||||
<p>为了解决此问题,诞生了一种被称为「列表 List」的数据结构。列表可以被理解为长度可变的数组,因此也常被称为「动态数组 Dynamic Array」。列表基于数组实现,继承了数组的优点,同时还可以在程序运行中实时扩容。在列表中,我们可以自由地添加元素,而不用担心超过容量限制。</p>
|
||||
<h2 id="431">4.3.1. 列表常用操作<a class="headerlink" href="#431" title="Permanent link">¶</a></h2>
|
||||
@@ -3207,7 +3207,7 @@
|
||||
<nav class="md-footer__inner md-grid" aria-label="页脚" >
|
||||
|
||||
|
||||
<a href="../linked_list/" class="md-footer__link md-footer__link--prev" aria-label="上一页: 4.2. &nbsp; 链表(LinkedList)" rel="prev">
|
||||
<a href="../linked_list/" class="md-footer__link md-footer__link--prev" aria-label="上一页: 4.2. &nbsp; 链表(Linked List)" rel="prev">
|
||||
<div class="md-footer__button md-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
|
||||
</div>
|
||||
@@ -3216,7 +3216,7 @@
|
||||
<span class="md-footer__direction">
|
||||
上一页
|
||||
</span>
|
||||
4.2. 链表(LinkedList)
|
||||
4.2. 链表(Linked List)
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user