Algorithm Visualizations
Watch algorithms in action with real-time animations. Adjust speed, change inputs, and compare different approaches.
30
50%
Comparisons:0
Swaps:0
Bubble Sort
Best Case
O(n)
Average
O(n²)
Worst Case
O(n²)
Space
O(1)
Stable
Yes
Default
Comparing
Swapping
Sorted
Pivot
Minimum
About the Algorithm Visualizer
Code Visualizer's algorithm visualizer brings sorting, searching, pathfinding, and dynamic programming algorithms to life with real-time animations. Watch Bubble Sort swap elements, see Dijkstra's shortest path unfold on a grid, or trace recursive call trees for Fibonacci — all step by step. Understanding Big O notation becomes intuitive when you can see the difference between O(n²) and O(n log n) play out visually. This visual learning tool doubles as a code debugger for algorithm logic, making it ideal for coding interviews, competitive programming prep, and computer science education.