3.5 Implement a MyQueue class which implements a queue using two stacks.
LeetCode上的原题,请参见我之前的博客Implement Queue using Stacks 用栈来实现队列。
时间: 2024-10-05 07:08:32
3.5 Implement a MyQueue class which implements a queue using two stacks.
LeetCode上的原题,请参见我之前的博客Implement Queue using Stacks 用栈来实现队列。