Implement Queue using Stacks---LeetCode232
目录
问题描述
Implement the following operations of a queue using stacks.
push(x) – Push element x to the back of queue.
pop() – Removes the element from in front of queue.
peek() – Get the front element.
e...
原创
2018-11-01 21:20:16 ·
124 阅读 ·
0 评论