mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-02 02:02:57 +08:00
deploy
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
<div data-md-component="skip">
|
||||
|
||||
|
||||
<a href="#51" class="md-skip">
|
||||
<a href="#51-stack" class="md-skip">
|
||||
跳转至
|
||||
</a>
|
||||
|
||||
@@ -680,7 +680,7 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../chapter_array_and_linkedlist/linked_list/" class="md-nav__link">
|
||||
4.2. 链表(LinkedList)
|
||||
4.2. 链表(Linked List)
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -981,7 +981,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>
|
||||
|
||||
@@ -1709,7 +1709,7 @@
|
||||
|
||||
|
||||
|
||||
<h1 id="51">5.1. 栈<a class="headerlink" href="#51" title="Permanent link">¶</a></h1>
|
||||
<h1 id="51-stack">5.1. 栈(Stack)<a class="headerlink" href="#51-stack" title="Permanent link">¶</a></h1>
|
||||
<p>「栈 Stack」是一种遵循「先入后出 first in, last out」数据操作规则的线性数据结构。我们可以将栈类比为放在桌面上的一摞盘子,如果需要拿出底部的盘子,则需要先将上面的盘子依次取出。</p>
|
||||
<p>“盘子”是一种形象比喻,我们将盘子替换为任意一种元素(例如整数、字符、对象等),就得到了栈数据结构。</p>
|
||||
<p>我们将这一摞元素的顶部称为「栈顶」,将底部称为「栈底」,将把元素添加到栈顶的操作称为「入栈」,将删除栈顶元素的操作称为「出栈」。</p>
|
||||
|
||||
Reference in New Issue
Block a user