mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-02 02:02:57 +08:00
deploy
This commit is contained in:
@@ -1698,6 +1698,8 @@
|
||||
<p>“盘子”是一种形象比喻,我们将盘子替换为任意一种元素(例如整数、字符、对象等),就得到了栈数据结构。</p>
|
||||
<p>我们将这一摞元素的顶部称为「栈顶」,将底部称为「栈底」,将把元素添加到栈顶的操作称为「入栈」,将删除栈顶元素的操作称为「出栈」。</p>
|
||||
<p><img alt="栈的先入后出规则" src="../stack.assets/stack_operations.png" /></p>
|
||||
<p align="center"> Fig. 栈的先入后出规则 </p>
|
||||
|
||||
<h2 id="511">5.1.1. 栈常用操作<a class="headerlink" href="#511" title="Permanent link">¶</a></h2>
|
||||
<p>栈的常用操作见下表(方法命名以 Java 为例)。</p>
|
||||
<div class="center-table">
|
||||
|
||||
Reference in New Issue
Block a user