๐Ÿ“˜

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.

๐Ÿ”— Related concepts

โ† Whole glossary