Skip to content

Chapter 5.   Stack and Queue

Stack and Queue

Abstract

Stacks are like stacking cats, while queues are like cats lining up.

They represent LIFO (Last In First Out) and FIFO (First In First Out) logic, respectively.

Chapter contents

Feel free to drop your insights, questions or suggestions