mirror of
https://github.com/krahets/hello-algo.git
synced 2025-08-02 19:53:11 +08:00
deploy
This commit is contained in:
@ -1643,6 +1643,8 @@
|
||||
<p>「队列 Queue」是一种遵循「先入先出 first in, first out」数据操作规则的线性数据结构。顾名思义,队列模拟的是排队现象,即外面的人不断加入队列尾部,而处于队列头部的人不断地离开。</p>
|
||||
<p>我们将队列头部称为「队首」,队列尾部称为「队尾」,将把元素加入队尾的操作称为「入队」,删除队首元素的操作称为「出队」。</p>
|
||||
<p><img alt="队列的先入先出规则" src="../queue.assets/queue_operations.png" /></p>
|
||||
<p align="center"> Fig. 队列的先入先出规则 </p>
|
||||
|
||||
<h2 id="521">5.2.1. 队列常用操作<a class="headerlink" href="#521" title="Permanent link">¶</a></h2>
|
||||
<p>队列的常用操作见下表,方法名需根据特定语言来确定。</p>
|
||||
<div class="center-table">
|
||||
|
Reference in New Issue
Block a user