This commit is contained in:
krahets
2026-04-03 18:46:15 +08:00
parent 377736b1bd
commit 9d21ca86b0
352 changed files with 46563 additions and 11262 deletions
+5 -5
View File
@@ -3,19 +3,19 @@ comments: true
icon: material/stack-overflow
---
# Chapter 5.   Stack and Queue
# Chapter 5.   Stacks and Queues
![Stack and Queue](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" }
![Stacks and Queues](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" }
!!! abstract
Stacks are like stacking cats, while queues are like cats lining up.
A stack is like cats piled on top of one another, while a queue is like cats lining up.
They represent LIFO (Last In First Out) and FIFO (First In First Out) logic, respectively.
They represent the logical relationships of LIFO (Last In, First Out) and FIFO (First In, First Out), respectively.
## Chapter contents
- [5.1   Stack](stack.md)
- [5.2   Queue](queue.md)
- [5.3   Double-Ended Queue](deque.md)
- [5.3   Deque](deque.md)
- [5.4   Summary](summary.md)