Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions DSA/2.3 Stack/1. Introduction/stack_introduction.md
Original file line number Diff line number Diff line change
@@ -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
Empty file added DSA/2.3 Stack/README.md
Empty file.