You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A stack is a collection of elements in which the most recent element can be removed
6
+
It uses the LIFO(last in first out) concept.
7
+
The last item to enter the stack is the first item to leave the stack.
8
+
It can be modelled using a list and the main operations that can be done are POP and PUSH in this case POP and APPEND.
9
+
Stacks are used in real life to build the UNDO and REDO functions where the steps of the user are stored in a stack and the last step can be retraced. like in microsoft word undo and redo function.
0 commit comments