Sorting Algorithm Visualizer
Sorting is the classic visualization subject for a good reason: the entire algorithm is visible in the movement of the data. The difference between an O(n²) and an O(n log n) sort is not a fact to be recalled, it is something you can watch happen on the same input.
This topic covers the comparison sorts and the non-comparison sorts, which is the distinction interviewers probe when they ask whether you can do better than n log n. Stepping through counting and radix sort makes the answer concrete — they are faster because they never compare two elements at all.
10
Interactive lessons3
Free to open4
Languages (JS, Python, Java, C++)Sorting lessons
Continue the DSA curriculum
Sorting is one of 12 topics in the interactive DSA visualizer curriculum. Once this topic is comfortable, the coding interview pattern library reorganises the same material around the patterns interview questions are built on.
Every other DSA visualizer
Data Structures · 28 lessons
- StackFree
- QueueFree
- Deque
- Circular Queue
- Priority Queue (ADT)
- Tree Traversal
- Binary Tree
- Binary Search Tree
- AVL Tree
- Trie (Prefix Tree)
- Segment Tree
- Fenwick Tree
- Red-Black Tree
- Singly Linked List
- Doubly Linked List
- Circular Linked List
- Graph RepresentationFree
- Breadth/Depth First SearchFree
- Depth First Search
- Topological Sort
- Cycle Detection
- Connected Components
- Bipartite Graph
- Dijkstra's Algorithm
- Bellman-Ford Algorithm
- Minimum Spanning Tree
- Floyd-Warshall Algorithm
- Bridges & Articulation Points
