mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 17:46:29 +08:00
790 B
790 B
comments | icon |
---|---|
true | material/stack-overflow |
Chapter 5. Stack and Queue
!!! abstract
A stack is like cats placed on top of each other, while a queue is like cats lined up one by one.
They represent the logical relationships of Last-In-First-Out (LIFO) and First-In-First-Out (FIFO), respectively.