Back to Ghost in the Repo

Data structures, visualized.

Each structure starts with one item in memory, then you predict, wire and break it yourself. A ghost walks every pointer so you can see what the code costs.

01 · LiveLinked listNodes, arrows, and the walk every list costs. Wire one yourself, then reverse it.02 · LiveStacks and queuesNewest first or oldest first. Push, pop and enqueue them, then check brackets with a stack.03 · LiveHash mapFind anything in one jump, until two keys collide. Hash, chain and resize one, then solve Two Sum.04 · LiveBinary treeTwo arrows per node instead of one. Insert, search, walk and delete, then validate a BST.05 · LiveHeapA tree that is really a list, smallest on top. Push, pop and heapify one, then keep the 3 largest from a stream.06 · LiveGraphEdges that go anywhere, including back. Explore one ring by ring with BFS and deep first with DFS, then count islands.