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