[leetcode: Python]232. Implement Queue using Stacks

題目: Implement the following operations of a queue using stacks.python push(x) – Push element x to the back of queue. pop() – Removes the element from in front of queue. peek() – Get the front element.
相關文章
相關標籤/搜索