Skip to content
DSA Visualizerpreview

Quick sort

Pick a pivot, move smaller values left of it, then sort each side.

O(n log n) average, O(n²) worst time · O(log n) space

Values33, 10, 55, 71, 29, 3, 18, 42

Start with the array 33, 10, 55, 71, 29, 3, 18, 42.

View
1 ranges across 4 layers of recursion; the deepest layer in use is 0.
  • compare
  • swap or write
  • settled

1 / 29

Speed

Space play · ← → step · Home End jump · drag the strip to scrub