MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Function main

Data Structures/gap_method.cpp:48–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int main()
49{
50 int n, m;
51 cin >> n >> m;
52 long long arr1[n], arr2[m];
53
54 //input first array...
55 for (int i = 0; i < n; i++)
56 cin >> arr1[i];
57
58 //input second array...
59 for (int i = 0; i < m; i++)
60 cin >> arr2[i];
61
62 //call the function..
63 merge(arr1, arr2, n, m);
64
65 //print first array after performing task...
66 for (int i = 0; i < n; i++)
67 cout << arr1[i] << " ";
68
69 //print second array after performing task...
70 for (int i = 0; i < m; i++)
71 cout << arr2[i] << " ";
72 cout << endl;
73
74
75return 0;
76}
77
78// Input :
79// n, m : 4 5

Callers

nothing calls this directly

Calls 1

mergeFunction · 0.70

Tested by

no test coverage detected