摘要: 225. 用队列实现栈(先入后出) var MyStack = function() { this.data = [] }; MyStack.prototype.push = function(x) { this.data.push(x) }; MyStack.prototype.pop = fun 阅读全文
posted @ 2023-01-12 22:06 Echoyya、 阅读(28) 评论(0) 推荐(0) 编辑