ongoing's blog
Home
Categories
Theme NexT works best with JavaScript enabled
Two stacks implement a queue
Posted on
2020-09-30
In
Algorithm
问题:两个栈实现一个队列
可以下看一下下面这幅图理解一个过程: