Data Structure
A way of organising data so it's easy to use.
๐ In simple words
A way of organising data so it's easy to use.
๐ Technical definition
A format for storing and organising data (list, stack, queue, map, tree, graphโฆ) that supports specific operations efficiently.
Pseudocode example
1SET HISTORY = []2ADD "page 1" TO HISTORY3SET LAST = POP(HISTORY)
๐ Real-world analogy
Choosing a bookshelf, a filing cabinet or a toy box depending on what you store.