diff --git a/DSA/2.3 Stack/1. Introduction/stack_introduction.md b/DSA/2.3 Stack/1. Introduction/stack_introduction.md new file mode 100644 index 0000000000..480df12554 --- /dev/null +++ b/DSA/2.3 Stack/1. Introduction/stack_introduction.md @@ -0,0 +1,18 @@ +# Stack + +A stack is a linear data structure that follows the +**Last In First Out (LIFO)** principle. + +You can think of a stack like a stack of plates. When plates are placed one +over another, you can only remove the top plate safely. Trying to remove +a plate from the middle would disturb the entire stack. + +Similarly, in a stack: +- Elements are added on top of each other +- Only the top element can be accessed or removed +- Random access to elements is not allowed + +## Topics Covered +- Introduction to Stack +- Stack implementation in C++ +- Standard stack problems diff --git a/DSA/2.3 Stack/README.md b/DSA/2.3 Stack/README.md new file mode 100644 index 0000000000..e69de29bb2