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

Function main

CPP/sorting/merge_sort.cpp:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 return merge(v,s,e);
57 }
58 int main(){
59 //cin.tie(0)->sync_with_stdio(0);
60 int n;
61 cin>>n;
62 std::vector<int> v;
63 for (int i = 0; i < n; ++i)
64 {
65 int it;
66 cin>>it;
67 v.pb(it);
68 }
69 int s=0;
70 int e=n-1;
71 mergesort(v,s,e);
72 for(auto it: v)
73 cout<<it<<" ";
74
75 return 0;
76 }

Callers

nothing calls this directly

Calls 1

mergesortFunction · 0.85

Tested by

no test coverage detected