# 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; a queue is like cats standing in line. They represent last-in, first-out and first-in, first-out order, respectively.