概念
队列是一种线性存储的数据结构
原则:
- 后进先出 - **LIFO **( last in first out)
- 先进后出
规则:
- 栈顶 - 插入、删除
- 栈底
- 空栈
es5 实现栈:
1 | function Stack() { |
es6 实现栈:
1 | class Stack { |
1 | class Stack { |
I'm so cute. Please give me money.
- Post link: https://blog.gaocaipeng.com/2020/07/09/lgcfi7/
- Copyright Notice: All articles in this blog are licensed under unless otherwise stated.