--- comments: true icon: material/stack-overflow --- # 第 5 章   堆疊與佇列 ![堆疊與佇列](../assets/covers/chapter_stack_and_queue.jpg){ class="cover-image" } !!! abstract 堆疊如同疊貓貓,而佇列就像貓貓排隊。 兩者分別代表先入後出和先入先出的邏輯關係。 ## Chapter Contents - [5.1   堆疊](https://www.hello-algo.com/en/chapter_stack_and_queue/stack/) - [5.2   佇列](https://www.hello-algo.com/en/chapter_stack_and_queue/queue/) - [5.3   雙向佇列](https://www.hello-algo.com/en/chapter_stack_and_queue/deque/) - [5.4   小結](https://www.hello-algo.com/en/chapter_stack_and_queue/summary/)