mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 19:06:28 +08:00
14 lines
339 B
Markdown
14 lines
339 B
Markdown
|
# Stack and Queue
|
||
|
|
||
|
<div class="center-table" markdown>
|
||
|
|
||
|
![Stack and Queue](../assets/covers/chapter_stack_and_queue.jpg)
|
||
|
|
||
|
</div>
|
||
|
|
||
|
!!! abstract
|
||
|
|
||
|
Stacks are like stacking cats, while queues are like cats lining up.
|
||
|
|
||
|
They respectively represent the logical relationships of Last-In-First-Out (LIFO) and First-In-First-Out (FIFO).
|