(customList,low,high)
| 123 | # QUICK SORT |
| 124 | |
| 125 | def partition(customList,low,high): |
| 126 | i = low - 1 |
| 127 | pivot = customList[high] |
| 128 | for j in range(low,high): |
| 129 | if customList[j] <= pivot: |
| 130 | i+=1 |
| 131 | customList[i],customList[j] = customList[j],customList[i] |
| 132 | customList[i+1],customList[high] = customList[high] , customList[i+1] |
| 133 | return (i+1) |
| 134 | |
| 135 | def quickSort(customList ,low ,high): |
| 136 | if low < high: |