hello-algo/docs/chapter_stack_and_queue/index.md

267 B

栈与队列

栈与队列

!!! abstract

栈如同叠猫猫,而队列就像猫猫排队。

两者分别代表先入后出和先入先出的逻辑关系。