Skip to content

Chapter 5.   Stacks and Queues

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

Feel free to drop your insights, questions or suggestions