MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / quick_sort

Function quick_sort

templates/quicksort.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void quick_sort(int arr[], int low, int high)
28{
29 if (low < high) {
30 int anchor = partition(arr, low, high);
31 quick_sort(arr, low, anchor - 1);
32 quick_sort(arr, anchor + 1, high);
33 }
34}
35
36void print_array(int arr[], int size)
37{

Callers 1

mainFunction · 0.85

Calls 1

partitionFunction · 0.85

Tested by

no test coverage detected