(arr, left=None, right=None)
| 99 | |
| 100 | |
| 101 | def quickSort(arr, left=None, right=None): |
| 102 | left = 0 if not isinstance(left, (int, float)) else left |
| 103 | right = len(arr) - 1 if not isinstance(right, (int, float)) else right |
| 104 | if left < right: |
| 105 | partitionIndex = partition(arr, left, right) |
| 106 | quickSort(arr, left, partitionIndex - 1) |
| 107 | quickSort(arr, partitionIndex + 1, right) |
| 108 | return arr |
| 109 | |
| 110 | |
| 111 | def partition(arr, left, right): |
nothing calls this directly
no test coverage detected