MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / main

Function main

Basics/Merge Sort.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int32_t main() {
26 ios_base::sync_with_stdio(0);
27 cin.tie(0);
28 int n; cin >> n;
29 a.resize(n);
30 for (int i = 0; i < n; i++) {
31 cin >> a[i];
32 }
33 vector<int> ans = merge_sort(0, n - 1);
34 for (int i = 0; i < n; i++) {
35 cout << ans[i] << ' ';
36 }
37 return 0;
38}
39// https://vjudge.net/problem/Gym-324997D

Callers

nothing calls this directly

Calls 2

merge_sortFunction · 0.85
resizeMethod · 0.80

Tested by

no test coverage detected