Quicksort

Quicksort is a comparison-based sorting algorithm that partitions elements around a pivot, then recursively sorts the resulting subarrays. Its average running time is O(n log n), though poor pivot choices can make it O(n²).

Connect