zl程序教程

您现在的位置是:首页 >  大数据

当前栏目

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

队列队列 实现 两个 Using Queue two 3.5
2023-09-11 14:21:39 时间

 

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

 

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