---
## Data Structures and Algorithms โ My Understanding
Weโve been learning about **Data Structures and Algorithms (DSA)**, and honestly, itโs starting to make more sense. It helps us write better and smarter code.
---
### ๐น What is a Data Structure?
A data structure is just a way to store and arrange data so we can use it easily.
Different data needs different ways to be organized.
---
### ๐น What is an Algorithm?
An algorithm is a step-by-step way of solving a problem. Itโs like giving your code instructions to follow.
---
## Stack and Queue (What We Focused On)
### โ Stack
* Stack means **Last In, First Out (LIFO)**.
* Think of a stack of books: the last one you put is the first one you remove.
* We use `push()` to add, and `pop()` to remove.
**Where itโs used:** undo button, browser history, etc.
---
### โ Queue
* Queue means **First In, First Out (FIFO)**.
* Like a line of people โ first person goes first.
* We use `enqueue()` to add and `dequeue()` or `shift()` to remove.
**Where itโs used:** print queues, messaging apps, etc.
---
## โ Why DSA Matters
It helps us write code that runs faster and solves problems better.
Itโs also important when preparing for job interviews.
---
## โ My Final Thoughts
Iโm still learning, but Stack and Queue are the two I understand the most for now.
Iโll keep practicing till the rest becomes easier.
---