摘要: class Queue { constructor() { this.count = 0; this.lowestCount = 0; this.items = {}; } enqueue(element) { this.items[this.count] = element; this.count 阅读全文
posted @ 2020-10-27 22:19 WP-WangPin 阅读(115) 评论(0) 推荐(0) 编辑
摘要: class Stack { constructor() { this.count = 0; this.items = {}; } push(element) { this.items[this.count] = element; this.count++; } pop() { if (this.is 阅读全文
posted @ 2020-10-27 16:43 WP-WangPin 阅读(92) 评论(0) 推荐(0) 编辑