Skip to content

Commit b2e654e

Browse files
authored
Add files via upload
1 parent f59ef10 commit b2e654e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# A stack implementation in python
2+
3+
## What is a stack?
4+
5+
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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python 3 or a higher version

0 commit comments

Comments
 (0)