stack_using_queues

  • Given a Queue data structure that supports standard operations like enqueue() and dequeue().
  • Implement a Stack data structure using only instance of Queue and queue operations allowed on the instances.
  • A stack can be implemented using two queues.