Hop through the heap.
Step forward, step back, and watch every pointer move.
A three-node list, built, walked and freed
int main() {Node* head = new Node(10);head->next = new Node(20);head->next->next = new Node(30);Node* cur = head;while (cur != nullptr) {cur = cur->next;}while (head != nullptr) {Node* old = head;head = head->next;delete old;}return 0;}
Starting…
Two ways to use HeapHop
LearnGuided lessons on sorting, linked lists, stacks, queues, trees, heaps and graphs. The program pauses at the moments that matter and asks you to predict the next step.Start learning EditorWrite or paste your own lab program, give it input, and step through it forwards and backwards.Open the editor
Pointers, finally visible.
- Rewind anything.The whole run is recorded first, so a step back is as exact as a step forward.
- Read it in plain English.Every step explained from what your program actually did.
- Catch the crash.Null pointers, use after delete and leaks stop at their line, with the reason.
- Trees that look like trees.Lists in a row, binary trees with real branches, head and cur on their nodes.
- Click to investigate.Any node, pointer or line of code shows its history. Jump to any moment in it.
- Your code never leaves your browser.Programs run on your device. No install, no upload.

