摘要: /** * Initialize your data structure here. */ var MyStack = function() { this.inQueue = []; this.outQueue = []; }; /** * Push element x onto stack. * 阅读全文
posted @ 2020-06-24 11:26 guogrant 阅读(74) 评论(0) 推荐(0) 编辑
摘要: /** * Initialize your data structure here. */ var MyQueue = function() { this.stack1 = []; this.stack2 = []; }; /** * Push element x to the back of qu 阅读全文
posted @ 2020-06-24 11:24 guogrant 阅读(79) 评论(0) 推荐(0) 编辑