This commit is contained in:
krahets
2023-02-24 18:45:27 +08:00
parent 8f74aa1fad
commit ed43cdf179
44 changed files with 168 additions and 168 deletions

View File

@@ -2,7 +2,7 @@
comments: true
---
# 5.3. 双向队列
# 5.3.   双向队列
对于队列,我们只能在头部删除或在尾部添加元素,而「双向队列 Deque」更加灵活在其头部和尾部都能执行元素添加或删除操作。
@@ -10,7 +10,7 @@ comments: true
<p align="center"> Fig. 双向队列的操作 </p>
## 5.3.1. 双向队列常用操作
## 5.3.1. &nbsp; 双向队列常用操作
双向队列的常用操作见下表,方法名需根据特定语言来确定。
@@ -293,7 +293,7 @@ comments: true
```
## 5.3.2. 双向队列实现 *
## 5.3.2. &nbsp; 双向队列实现 *
与队列类似,双向队列同样可以使用链表或数组来实现。