1. What is Data Structure?
Definition: It is a format to organize, process, and store data in memory efficiently. Example: Think of it like a neatly organized closet where clothes are sorted by type so you can find them quickly.
Data Structures & Algorithms Review key questions below or open the full interactive deck with code examples, bookmarks, and personal study notes.
Definition: It is a format to organize, process, and store data in memory efficiently. Example: Think of it like a neatly organized closet where clothes are sorted by type so you can find them quickly.
Definition: It measures how the runtime of an algorithm increases as the input size grows. Example: If you have to check every page of a 100-page book, time complexity tells you how much longer it takes if the book becomes 1000 pages.
Definition: It measures the extra memory space an algorithm requires to run. Example: Cooking a large meal might require using 5 extra bowls (memory), which is its space complexity.
Definition: It describes the worst-case scenario for how long an algorithm takes or how much memory it uses. Example: In the worst case, finding a specific name in an unsorted phonebook means checking every single page (O(n)).
Definition: A collection of items stored at continuous memory locations. Example: Think of an array like a row of connected pill boxes—each box holds one pill, and they are perfectly lined up next to each other.