mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Remove the file headers from the docs.
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
---
|
||||
comments: true
|
||||
---
|
||||
|
||||
# 双向队列
|
||||
|
||||
对于队列,我们只能在头部删除或在尾部添加元素,而「双向队列 Deque」更加灵活,在其头部和尾部都能执行元素添加或删除操作。
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
---
|
||||
comments: true
|
||||
---
|
||||
|
||||
# 队列
|
||||
|
||||
「队列 Queue」是一种遵循「先入先出 first in, first out」数据操作规则的线性数据结构。顾名思义,队列模拟的是排队现象,即外面的人不断加入队列尾部,而处于队列头部的人不断地离开。
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
---
|
||||
comments: true
|
||||
---
|
||||
|
||||
# 栈
|
||||
|
||||
「栈 Stack」是一种遵循「先入后出 first in, last out」数据操作规则的线性数据结构。我们可以将栈类比为放在桌面上的一摞盘子,如果需要拿出底部的盘子,则需要先将上面的盘子依次取出。
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
---
|
||||
comments: true
|
||||
---
|
||||
|
||||
# 小结
|
||||
|
||||
- 栈是一种遵循先入后出的数据结构,可以使用数组或链表实现。
|
||||
|
||||
Reference in New Issue
Block a user