IT博客汇
首页
精华
技术
设计
资讯
扯淡
权利声明
登录
注册
LeetCode Implement Queue using Stacks
yangliuy
发表于
2015-07-21 14:48:29
love
0
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.empty() --