You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
835 B
26 lines
835 B
10 months ago
|
---
|
||
|
comments: true
|
||
|
icon: material/stack-overflow
|
||
|
---
|
||
|
|
||
|
# Chapter 5. Stack and Queue
|
||
10 months ago
|
|
||
|
<div class="center-table" markdown>
|
||
|
|
||
10 months ago
|
![Stack and Queue](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" }
|
||
10 months ago
|
|
||
|
</div>
|
||
|
|
||
|
!!! abstract
|
||
|
|
||
10 months ago
|
A stack is like cats placed on top of each other, while a queue is like cats lined up one by one.
|
||
10 months ago
|
|
||
10 months ago
|
They represent the logical relationships of Last-In-First-Out (LIFO) and First-In-First-Out (FIFO), respectively.
|
||
10 months ago
|
|
||
|
## 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/)
|