[CareerCup] 3.5 Implement Queue using Two Stacks 使用两个栈来实现队列

 

3.5 Implement a MyQueue class which implements a queue using two stacks.

 

LeetCode上的原题,请参见我之前的博客Implement Queue using Stacks 用栈来实现队列

 

posted @ 2015-07-27 00:47  Grandyang  阅读(742)  评论(0编辑  收藏  举报
Fork me on GitHub