摘要: export default class MyCircularQueue{ constructor (k){ //用来保存数据长度为k的数据结构 this.list=Array(k) this.front=0//队首的指针 this.rear=0 //队尾的指针 this.max=k //队列的长度 阅读全文
posted @ 2020-08-10 21:47 石shi 阅读(527) 评论(0) 推荐(0) 编辑