hello-algo/docs-en/chapter_stack_and_queue/index.md

14 lines
339 B
Markdown
Raw Normal View History

2024-01-09 04:42:00 +08:00
# 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).