Foundations
The essentials, in an order you can follow from zero.
From Array to Sliding Window.
- stops
- 89
- lessons
- 45
- categories
- 23
Every topic, drawn one decision at a time. You guess first.
A binary search for 56 plays on a loop: the trace fills in one step at a time, a prompt asks what happens next, the answer is Found it, and the run ends with 56 found in 2 comparisons.
Two algorithms, each playing its own run, side by side.
In the clip, linear search checks the cells one at a time and finds 2 after 4 comparisons, while binary search finds 56 after 2. Each plays its own example.
Any lesson, on input you type.
In the clip, the numbers 3, 1, 3, 2, 1 are typed, Enter and Run are pressed, and the run starts on them.
Variables and picture move with it.
In the clip, a highlight steps down the binary search code in Python, line 3, then line 5, then line 6, while the matching cell and the names low and mid are marked on the cells 4, 9, 15, 21, 27, 33 in the row below.
Step, play and answer from the keyboard.
The arrow keys step, Space plays and pauses, and the number keys answer a question.
JavaScript or Python, against the lesson's examples.
In the clip, a binarySearch function appears line by line in the editor, which offers JavaScript and Python, Run is pressed, and the test cases appear, ending with All 8 cases pass.
It stops before each decision. Pick an answer, then watch what really happens.
Try it on binary searchIn the clip, a question stops the run at 16 against 56; the right pill is picked and the next row shows 56 found.
Watch it, predict it, understand it.
Insertion sort on 8 numbers
21 comparisons and 17 swaps.
The essentials, in an order you can follow from zero.
From Array to Sliding Window.
The mainstream set a university course or an interview loop expects, easiest first.
From Array to AVL Tree.
No. An account saves your progress and predictions across devices.
Create an accountYes, on every lesson, in Chrome 119, Firefox 120, Safari 18.2 or newer.
Yes, on the App Store and Google Play, offline too.