3.5 Implement a MyQueue class which implements a queue using two stacks.
LeetCode上的原题,请参见我之前的博客Implement Queue using Stacks 用栈来实现队列。
3.5 Implement a MyQueue class which implements a queue using two stacks.
LeetCode上的原题,请参见我之前的博客Implement Queue using Stacks 用栈来实现队列。