Start with the basics.
Eight structures, in a suggested order. Open any one.
Begin: Data and instructions19 problems across 8 structures
Algorithm — steps a machine can follow
one dumb step at a time
the machine seesflip card 0???012The machine never sees the plan — only this instruction.
Array — values in indexed slots
tap two to swap
01234Tap a cell to pick it up.
Hash table — the key computes its address
value % 5
Insert a value — it jumps to bucket (value % 5).
01234Two in one bucket is a collision.
Linked list — nodes joined by pointers
append · tap to remove
head∅Removing a node just rewires one pointer.
Stack — last in, first out
push / pop
85You only ever touch the top.
One expression, three notations
A + B × C
A+B×CEach operator sits between its two operands — the way we write maths by hand.
Queue — first in, first out
enqueue / dequeue
OUT →← IN583frontrearYou only ever leave from the front.
Recursion — a function that calls itself
the call stack
no calls yetThe stack is empty — call countdown(3) to begin.
Binary search tree — smaller left, larger right
insert / reset
Each value walks down to its slot.
Graph — nodes joined by edges
tap a node to see who it connects to
Tap a node to light up its neighbours.