MCPcopy Create free account
hub / github.com/geekcomputers/Python / quick_sort.py

File quick_sort.py

Sorting Algorithms/quick_sort.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def partition(nums, low, high):
2 # We select the middle element to be the pivot. Some implementations select
3 # the first element or the last element. Sometimes the median value becomes
4 # the pivot, or a random one. There are many more strategies that can be

Callers

nothing calls this directly

Calls 1

quick_sortFunction · 0.70

Tested by

no test coverage detected