# Stacks and Queues ![Stacks and Queues](../assets/covers/chapter_stack_and_queue.jpg) !!! 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.