Wink Pings

The hardest part of learning algorithms is visualizing pointers in your head—this free website lets you click through one step at a time

Free, no registration required, and can switch to Simplified Chinese. 86 lessons turn algorithms into interactive diagrams, one click and one step at a time. It untangles the pointers in your head, but understanding the animations does not mean you can write them by hand; you have to use it the right way.

When learning algorithms, it's easy to get stuck if you only look at code: how do the pointers move in quicksort, and why does LRU put a linked list and a hash table together? On November 22, developer Dilum Sanjaya launched Algo Lab, which draws these processes as interactive diagrams. Click next, and the diagram moves one step.

The website is free, requires no registration, works in desktop and mobile browsers, and the interface can be switched to Simplified Chinese. The entry point is https://byte-sized-algorithms.vercel.app

The 86 lessons are divided into 14 units, starting with Big O notation and recursion, moving through arrays, linked lists, stacks and queues, hashing, trees, heaps, graphs, sorting, and searching, then on to greedy algorithms, backtracking, dynamic programming, and bit manipulation; the final lesson is the P vs. NP problem. The graph unit is the largest, with 13 lessons, ranging from breadth-first search to minimum spanning trees. There are 21 languages; compared with Dilum's electronics introduction website last month, this one adds Hindi.

Take the quicksort lesson as an example: eight blocks with numbers are lined up, and the last one is marked as the pivot. As you keep clicking, pointers i and j move beneath the blocks; blocks smaller than the pivot are swapped to the left one by one, and finally the pivot lands where it belongs. Pseudocode is shown synchronously on the right, with the lines corresponding to the current step highlighted.

In the shortest-path lesson, the connections between five nodes are labeled with distances. With each step, the table beside it updates the currently known shortest distance to A, gradually changing from infinity to the final answer. The LRU cache lesson explains why a linked list and a hash table need to work as a team: the linked list records order, while the hash table is responsible for finding the needed item instantly.

Some lessons also include a small real-world note. For example, the dynamic array lesson tells you that Python's list, Java's ArrayList, and C++'s vector are all this same thing.

Dilum wrote in a tweet: “You don't need to memorize algorithms. You need to see them move.” In other words, you don't need to memorize algorithms; you need to see them move. This website basically follows that idea. Over the past month or so, he has made a series of free learning websites—previously Arduino, ESP32, an electronics introduction, illustrated network protocols, system design, and more—with hosting costs sponsored by Vercel. Algo Lab is the latest in this series.

How can you use it more effectively? After opening a lesson, first look at the currently highlighted pseudocode, guess what will happen next, and then click Next to verify. The most reliable way to use this kind of tool is to let the animation handle error correction, not the thinking. Visualization can lower the barrier to understanding, but you still have to fill in the practice path yourself. One commenter mentioned that interactive animations lower the barrier but don't provide a practice path; another comment was more specific—when writing code, whether to use <= or < for a boundary condition still has to be verified by running it with a breakpoint in the end. Someone else mentioned that the LRU lesson picked a good point: many people can recite the code but can't explain why using only a linked list or only a hash table doesn't work.

For people with a development background, it is good for filling in gaps, especially for topics that are hard to run through the call stack in your head, such as graphs, dynamic programming, and bit manipulation. For readers without a technical background, it lets you see the process first and then read the concepts, so you don't have to grind through pseudocode right away. The website requires no registration; you can use it as soon as you open it, and switching to Chinese is easy.

Website: https://byte-sized-algorithms.vercel.app
Dilum's original tweet: https://x.com/DilumSanjaya/status/2124547118220316851

发布时间: 2026-11-29 15:32