Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. /* low --> Starting index, high --> Ending index */
  2. quickSort(arr[], low, high)
  3. {
  4. if (low < high)
  5. {
  6. /* pi is partitioning index, arr[pi] is now
  7. at right place */
  8. pi = partition(arr, low, high);
  9.  
  10. quickSort(arr, low, pi - 1); // Before pi
  11. quickSort(arr, pi + 1, high); // After pi
  12. }
  13. }
Add Comment
Please, Sign In to add comment