← All subjects

Computer Science

Algorithms, data structures and how machines actually think.

Core concepts

Big-O notation

A way to describe how work grows with input size. Binary search is O(log n) — doubling the data adds one step.

Recursion

A function that calls itself on a smaller problem until it hits a base case.

Binary

Everything in a computer is base-2. 1011 in binary is 8 + 0 + 2 + 1 = 11.

Try an experiment

15 min

Sort a deck like a computer

You feel O(n²) versus O(n log n) in your hands — the gap widens as the deck grows.

Related lessons