栈 (Stack)是一种后进先出(last in first off,LIFO)的数据结构
队列(Queue)则是一种先进先出 (fisrt in first out,FIFO)的结构
栈
1 | class Stack: |
leave me alone i know what to do
栈 (Stack)是一种后进先出(last in first off,LIFO)的数据结构
队列(Queue)则是一种先进先出 (fisrt in first out,FIFO)的结构
1 | class Stack: |
微信打赏