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