Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 601 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 601 Bytes

Quick sort

Quick sort is a highly efficient sorting algorithm and is based on partitioning of array of data into smaller arrays. A large array is partitioned into two arrays one of which holds values smaller than the specified value, say pivot, based on which the partition is made and another array holds values greater than the pivot value.Quick sort partitions an array and then calls itself recursively twice to sort the two resulting subarrays.

A graphical example of quick sort