mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 19:56:29 +08:00
25 lines
805 B
Markdown
25 lines
805 B
Markdown
---
|
|
comments: true
|
|
icon: material/stack-overflow
|
|
---
|
|
|
|
# Chapter 5. Stack and Queue
|
|
|
|
<div class="center-table" markdown>
|
|
|
|
![Stack and Queue](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" }
|
|
|
|
</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).
|
|
|
|
## Chapter Contents
|
|
|
|
- [5.1 Stack](https://www.hello-algo.com/en/chapter_stack_and_queue/stack/)
|
|
- [5.2 Queue](https://www.hello-algo.com/en/chapter_stack_and_queue/queue/)
|
|
- [5.3 Double-ended Queue](https://www.hello-algo.com/en/chapter_stack_and_queue/deque/)
|
|
- [5.4 Summary](https://www.hello-algo.com/en/chapter_stack_and_queue/summary/)
|