Stacks
Stacks
performed. This particular order is referred to as LIFO (Last In First Out) - this order implies that
the element which is inserted last, will be the first one to be deleted
➢ Undo/Redo operations in word processors: when using word processors like Microsoft
Word, you have the ability to undo and/or redo an action, this uses the Stacks functionality
Implementation of Stacks:
The operations that can be performed on a Stack being push, pop and peek, we can say that it’s
possible to implement Stacks using arrays and linked lists
How so?