Skip to content

仓库 files navigation

Visualize, understand and master algorithms

Visit alg0.dev Leer en español

alg0.dev — Algorithm Visualizer

Learn algorithms and data structures interactively. Step-by-step visualizations, real-time code highlighting and detailed explanations. All in your browser, no setup needed.

Start exploring →


What is alg0.dev

A free, interactive web tool to learn algorithms through animated step-by-step visualizations. Every algorithm includes:

  • Animated visualization — watch how the data structure transforms at each step
  • Active line highlighting — code highlights in sync with the animation
  • Variable tracking — see the state of every variable in real time
  • Contextual explanation — understand the why behind each operation

40+ algorithms across 8 categories

Sorting

Bubble Sort · Selection Sort · Insertion Sort · Quick Sort · Merge Sort · Heap Sort · Counting Sort · Radix Sort · Shell Sort

Data Structures

Stack · Queue · Linked List · Hash Table · Binary 搜索 Tree · Heap

Graphs

BFS · DFS · Dijkstra · Prim · Topological Sort

搜索ing

Binary 搜索 · Linear 搜索 · Jump 搜索 · Interpolation 搜索

Dynamic Programming

Fibonacci · 0/1 Knapsack · LCS (Longest Common Subsequence)

Backtracking

N-Queens · Sudoku Solver · Maze Pathfinding

Divide & Conquer

Tower of Hanoi

Concepts

Big O · Recursion · Two Pointers · Sliding Window · Memoization · Greedy vs DP · Space Complexity

Keyboard shortcuts

Key Action
Space Play / Pause
Next step
Previous step
C Code tab
E Explanation tab

Plus: speed control (5 levels), skip to start/end, and resizable panels.

Features

  • Interactive — step through execution, adjust speed, go forward and backward
  • Bilingual — available in English and Spanish
  • Responsive — works on mobile, tablet and desktop
  • Accessible — keyboard navigation, screen reader support, respects prefers-reduced-motion
  • Built-in code editor — Monaco Editor with syntax highlighting and custom dark theme
  • No sign-up — open your browser and start learning

Stack

Built with Astro + plain JS + Tailwind CSS + Shiki.

License

MIT — created by @midudev

关于

alg0.dev is an interactive algorithm visualizer where classic algorithms come to life through step by step animations, controls to pause or advance, and access to the underlying code.

Topics

Resources

Stars

204 stars

关注者

1 watching

复刻s

Used by

贡献者

Languages