Fork me on github
摘要: class MaxQueue { constructor() { this.queue = [] this.max = [] } enqueue(el) { this.queue.push(el) while(this.max.length && this.max[this.max.length - 阅读全文
posted @ 2023-09-07 22:10 zjy4fun 阅读(5) 评论(0) 推荐(0) 编辑