Skip to content
Welcome to contribute to Chinese-to-English translation! Please visit #914 for more details.

# Chapter 5. Stack and queue

Abstract

A stack is like cats placed on top of each other, while a queue is like cats lined up one by one.

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

## Chapter contents

- 5.1 Stack
- 5.2 Queue
- 5.3 Double-ended queue
- 5.4 Summary

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