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

Function isSubset

CPP/searching/binary_search2.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 return ans;
23}
24string isSubset(int arr1[],int arr2[],int n, int m){
25 sort(arr1,arr1+n);
26 for (int i = 0; i < m; i++) {
27 int thik;
28 thik=check(arr2,n,arr1[i]);
29 if(thik==1)
30 return "Yes";
31 }
32 return "No";
33}
34int main(){
35 cin.tie(0)->sync_with_stdio(0);
36 int n,m;

Callers 1

mainFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected