So what does it mean by the term,
Stack using Queue
- PUSH efficient
2.POP efficient
So what does it mean by the term,
Stack using Queue
There are two methods for stack using queue.
1.make push O(1) and manage order during pop operation(ie.deque everything and put in other queue)
2.make pop O(1) and manage order during push operation
Please read this link: