(arr, low, high)
| 23 | |
| 24 | |
| 25 | def quickSort(arr, low, high): |
| 26 | if len(arr) == 1: |
| 27 | return arr |
| 28 | if low < high: |
| 29 | # pi is partitioning index, arr[p] is now |
| 30 | # at right place |
| 31 | pi = partition(arr, low, high) |
| 32 | |
| 33 | # Separately sort elements before |
| 34 | # partition and after partition |
| 35 | quickSort(arr, low, pi - 1) |
| 36 | quickSort(arr, pi + 1, high) |
| 37 | |
| 38 | |
| 39 | # Driver code to test above |
no test coverage detected