--- comments: true icon: material/stack-overflow --- # Chapter 5.   Stacks and Queues ![Stacks and Queues](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" } !!! 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](stack.md) - [5.2   Queue](queue.md) - [5.3   Deque](deque.md) - [5.4   Summary](summary.md)