Remix Library / Techy
Sorting Visualizer
Watch bubble, insertion, selection, merge and quick sort race. Count every compare and swap.
No account needed: you’ll start as a guest.
read-only · remix to edit
What you'll learn
Challenges
Remix it, then try these. Each one is a bit harder than the last.
- Sort 100 bars with bubble sort, then with quick sort. How many compares does each take?
- Add a button that starts with bars already sorted backwards (the worst case for some sorts).
- Color the bars by height, like a rainbow.
- Add another algorithm: shell sort or heap sort.
- Run two algorithms side by side on the same bars and see which finishes first.