Main Page

Quick Sort

Quick Sort is and algorithm that is an efficient, recursive divide-and-conquer approach to sorting an array. In this method, a pivot value is chosen in the original array. The array is then partitioned into two subarrays of values less than and greater than the pivot value. We then combine the result of recursively calling the quick sort algorithm on both sub-arrays. This continues until the base case of an empty or single-item array is reached, which we return. The unwinding of the recursive calls return us the sorted array.

Day 8 of "100 days of coding".


Sorted Array

Answer...

Add to Array Sort Array
Sorting Array...