DSA · Interactive

Algorithms, Visualized

Watch real code sort, search and scan arrays, one step at a time. Pause it, rewind it, feed it your own numbers, and see exactly which line is running.

Visualizers
11 visualizers
Languages
Python · Java · JavaScript
Illustration: glass bars of different heights mid-sort, two of them swapping, one highlighted as the pivot

Why watch an algorithm instead of reading about it?

Most explanations of quick sort are a paragraph and a diagram of the final result. The part that trips people up, what the pointers do in the middle, is left to your imagination.

Here you see every comparison and every swap as it happens, next to the line of code doing it. When you get confused, step back one move. When you think you understand, type in a tricky input like duplicates or a sorted list and check whether you can predict the next step.

That loop of predict, watch, check is how the idea sticks, and it is exactly what an interviewer tests when they ask you to trace an algorithm by hand.

Every visualizer has

  • Real, tested codeThe animation is driven by an actual implementation, unit-tested against an independent one.
  • Code that follows alongPython, Java and JavaScript, with the line that is running highlighted.
  • Step forward and backPause anywhere, rewind a step, or change the speed.
  • Your own inputType your own numbers, including duplicates and edge cases.
  • Live countersComparisons and swaps, writes or probes, as they happen.
  • Everything after the animationComplexity, common bugs, interview questions and an FAQ.

Visualizers

Coming next

Built the same way: real code, line-by-line sync, your own input.

Graphs

  • Breadth-first search
  • Depth-first search
  • Dijkstra's shortest path
  • Topological sort

Trees

  • Binary search tree insert and delete
  • Tree traversals
  • Heaps and priority queues

Dynamic programming

  • Fibonacci: memoization vs tabulation
  • 0/1 knapsack
  • Longest common subsequence

Crio Software Development

Go from watching algorithms to using them

Crio's Software Development Fellowship has you practise data structures and algorithms by building real projects, the way they come up at work and in interviews. Start with a free trial session.

Explore the program

Free trial · No credit card required

Last updated 20 November 2026