--- ## 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. ---