Stacks and Queues are ADTs (Abstract Data Types). We have already seen how Stacks and Queues can be implemented using arrays. In this tutorial we will see how to implement stack using linked list. What is ADT ? ADT (Abstract Data Types) in data… Read More!
In previous article Stack introduction and implementation we had learnt how to implement stack in java and in our first example Stack Example 1 we have seen how to use stack to reverse a word or a string. Stacks are commonly used… Read More!
In our previous article Stack Introduction and Implementation we had learnt how to implement stack in java. In this first example we will see how to reverse a word or a string using a stack. When you run the following code, it… Read More!
Stack is more abstract entity than array and many other data structures. The underlying mechanism used to implement stacks is not visible to the user. It follows Last In First Out (LIFO) principle i.e., stacks allows access to only one… Read More!