Skip to content
Welcome to contribute to Chinese-to-English translation! For more details, please refer to CONTRIBUTING.md.

# Chapter 5. Stacks and Queues

Abstract

A stack is like cats piled on top of one another, while a queue is like cats lining up.

They represent the logical relationships of LIFO (Last In, First Out) and FIFO (First In, First Out), respectively.

## Chapter contents

- 5.1 Stack
- 5.2 Queue
- 5.3 Deque
- 5.4 Summary
- 5.5 Exercises

##### Feel free to drop your insights, questions or suggestions