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

Function main

CPP/k_th_arrays.cpp:24–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24int main()
25{
26 int t;
27 cin>>t;
28 while(t--){
29 int n,m,k;
30 cin>>n>>m>>k;
31 int arr1[n],arr2[m];
32 for(int i=0;i<n;i++)
33 cin>>arr1[i];
34 for(int i=0;i<m; i++)
35 cin>>arr2[i];
36
37 Solution ob;
38 cout << ob.kthElement(arr1, arr2, n, m, k)<<endl;
39
40 }
41
42 return 0;
43}

Callers

nothing calls this directly

Calls 1

kthElementMethod · 0.80

Tested by

no test coverage detected