Store things that sit under other things, like folders, and learn the ways to visit every one.
Recursion: a function that calls itself, a base case that stops it, and the call stack that keeps track of each call
Stacks and queues: push and pop, enqueue and dequeue, and what first in, first out means
Lesson 1 · What a tree is
Next: 10 · Binary search trees · 9 lessons · 1 h 41 min
Try the same model with your own values. No checks, nothing recorded.
Open the playground