MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / mergesort

Function mergesort

CPP/sorting/merge_sort.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50 }
51 void mergesort(std::vector<int> &v,int s,int e){
52 if(s>=e) return;
53 int mid=(s+e)/2;
54 mergesort(v,s,mid);
55 mergesort(v,mid+1,e);
56 return merge(v,s,e);
57 }
58 int main(){
59 //cin.tie(0)->sync_with_stdio(0);
60 int n;

Callers 1

mainFunction · 0.85

Calls 1

mergeFunction · 0.70

Tested by

no test coverage detected