MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / quick_sort

Function quick_sort

Sorting/Code/quickSort.py:9–13  ·  view source on GitHub ↗
(elements, start, end)

Source from the content-addressed store, hash-verified

7 arr[b] = tmp
8
9def quick_sort(elements, start, end):
10 if start < end:
11 pi = partition(elements, start, end)
12 quick_sort(elements, start, pi-1)
13 quick_sort(elements, pi+1, end)
14
15def partition(elements, start, end):
16 pivot_index = start

Callers 1

quickSort.pyFile · 0.85

Calls 1

partitionFunction · 0.70

Tested by

no test coverage detected