A Stack is an Abstract Data Type(ADT), commonly used in most programming languages. It is named stack as it behaves like a real-world stack, for example- a deck of cards or a pile of plates, etc.
As we can place or remove a card or plate from the top of the stack only.Likewise , Stack ADT allows all data operations at one end only.
Read this article to understand Implementing Stack using queues in two ways in depth
Have a doubt or thought? Join the discussion now
This is a companion discussion topic for the original entry at http://iq.opengenus.org/stack-using-queue/