Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* low --> Starting index, high --> Ending index */
- quickSort(arr[], low, high)
- {
- if (low < high)
- {
- /* pi is partitioning index, arr[pi] is now
- at right place */
- pi = partition(arr, low, high);
- quickSort(arr, low, pi - 1); // Before pi
- quickSort(arr, pi + 1, high); // After pi
- }
- }
Add Comment
Please, Sign In to add comment