摘要:
/** * Initialize your data structure here. */ var MyStack = function() { this.inQueue = []; this.outQueue = []; }; /** * Push element x onto stack. * 阅读全文
posted @ 2020-06-24 11:26
全栈派森
阅读(81)
评论(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
全栈派森
阅读(86)
评论(0)
推荐(0)