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

Function quickSort

Sorting/Homework/quickSort.cpp:23–31  ·  view source on GitHub ↗

Function to sort an array using quick sort algorithm.

Source from the content-addressed store, hash-verified

21}
22//Function to sort an array using quick sort algorithm.
23void quickSort(int arr[], int start, int end)
24{
25 // code here
26 if (start<end){
27 int part = partition(arr,start,end);
28 quickSort(arr,start,part-1);
29 quickSort(arr,part+1,end);
30 }
31}
32
33int partition (int arr[], int start, int end)
34{

Callers 1

mainFunction · 0.70

Calls 1

partitionFunction · 0.70

Tested by

no test coverage detected