🧮Data Structure
Also known as Data Structures
A way to arrange data so a program can use it well.
Think of it like
Think of it like the way you store things at home. Socks go in a drawer, books on a shelf.
Example
Lucy keeps 50,000 products in a list and searches it on every click. Moving them to a hash table makes each lookup instant.
Why it matters
The same task can be slow or fast just by changing where the data lives.
Definition
Common mistake
Key takeaways
- 1A way to arrange. Data in memory.
- 2Good at some jobs. Slow at others.
- 3Pick by the task. Read, find, add or remove.