This commit is contained in:
krahets
2023-02-26 18:17:57 +08:00
parent 80f9b68963
commit 8e0872643c
31 changed files with 99 additions and 175 deletions

View File

@@ -6,9 +6,7 @@ comments: true
对于队列,我们只能在头部删除或在尾部添加元素,而「双向队列 Deque」更加灵活在其头部和尾部都能执行元素添加或删除操作。
![deque_operations](deque.assets/deque_operations.png)
<p align="center"> Fig. 双向队列的操作 </p>
![双向队列的操作](deque.assets/deque_operations.png)
## 5.3.1. &nbsp; 双向队列常用操作

View File

@@ -8,9 +8,7 @@ comments: true
我们将队列头部称为「队首」,队列尾部称为「队尾」,将把元素加入队尾的操作称为「入队」,删除队首元素的操作称为「出队」。
![queue_operations](queue.assets/queue_operations.png)
<p align="center"> Fig. 队列的先入先出特性 </p>
![队列的先入先出规则](queue.assets/queue_operations.png)
## 5.2.1. &nbsp; 队列常用操作

View File

@@ -10,9 +10,7 @@ comments: true
我们将这一摞元素的顶部称为「栈顶」,将底部称为「栈底」,将把元素添加到栈顶的操作称为「入栈」,将删除栈顶元素的操作称为「出栈」。
![stack_operations](stack.assets/stack_operations.png)
<p align="center"> Fig. 栈的先入后出特性 </p>
![栈的先入后出规则](stack.assets/stack_operations.png)
## 5.1.1. &nbsp; 栈常用操作