mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-01 01:54:24 +00:00
22 lines
526 B
Markdown
22 lines
526 B
Markdown
---
|
|
comments: true
|
|
icon: material/stack-overflow
|
|
---
|
|
|
|
# Chapter 5. Stack and Queue
|
|
|
|
{ class="cover-image" }
|
|
|
|
!!! abstract
|
|
|
|
Stacks are like stacking cats, while queues are like cats lining up.
|
|
|
|
They represent LIFO (Last In First Out) and FIFO (First In First Out) logic, respectively.
|
|
|
|
## Chapter contents
|
|
|
|
- [5.1 Stack](stack.md)
|
|
- [5.2 Queue](queue.md)
|
|
- [5.3 Double-Ended Queue](deque.md)
|
|
- [5.4 Summary](summary.md)
|