Sorting visualizer
Quick Sort
Partition values around a pivot and recurse.
Example Array
[42, 17, 8, 33, 25, 11, 60, 29]Visualization
ComparingMoving / writingPivotSorted
Metrics
Comparisons0
Swaps0
Progress0%
Time taken0.0s
quickSort(arr, low, high)if low < highpivot = arr[high]for j from low to high - 1if arr[j] <= pivotmove arr[j] to left partitionplace pivot between partitionsquickSort(left partition)quickSort(right partition)return arr
About Quick Sort
Quick Sort chooses a pivot, moves smaller values before it and larger values after it, then recursively sorts both partitions.
Sorted Output
[ 8, 11, 17, 25, 29, 33, 42, 60 ]Complete the visualization to reach this output.
Complexity Overview
Best CaseO(n log n)
Average CaseO(n log n)
Worst CaseO(n²)
SpaceO(log n)
StableNo