← Back to All Algorithms

⚡ Quicksort (Lomuto Partition)

How It Works

Quicksort uses a divide-and-conquer strategy:

  1. Pick a pivot (we use the last element)
  2. Partition the array: elements ≤ pivot go left, elements > pivot go right
  3. Recursively sort the left and right partitions
Low: - High: - Pivot Value: -
Click "Start" to begin the visualization
Pivot
Comparing
Swapping
Sorted

Complexity Analysis