Skip to content

Chapter 5.   Stacks and queues

Stacks and queues

Abstract

A stack is like cats piled on top of one another; a queue is like cats standing in line.

They represent last-in, first-out and first-in, first-out order, respectively.

Chapter contents

Share your insights, questions, or suggestions in the comments