第六题:LeetCode-232-Implement Queue using Stacks

Subject: 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 elemen
相关文章
相关标签/搜索