leetcode
Leetcode - Implement Stack using Queues Solution
Implement a last in first out (LIFO) stack using only two queues. The implemented stack should support all the functions of a normal queue (push, top, pop, and empty). Implement the MyStack class: * void push(int x) Pushes element x to the top of the stack. * int pop() Removes the