techiedelight.com
Implement Stack using Queue Data Structure - Techie Delight
In this post, we will see how to implement a stack data structure using queue in C++ and Java. In other words, design a stack that supports push and pop operations using standard enqueue and dequeue operations of the queue.