MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Function main

Recursion/Homework/subsetSum.cpp:36–54  ·  view source on GitHub ↗

{ Driver Code Starts.

Source from the content-addressed store, hash-verified

34
35// { Driver Code Starts.
36int main()
37{
38 int t;
39 cin>>t;
40 while(t--)
41 {
42 int N, sum;
43 cin >> N;
44 vector<int> arr(N);
45 for(int i = 0; i < N; i++){
46 cin >> arr[i];
47 }
48 cin >> sum;
49
50 Solution ob;
51 cout << ob.isSubsetSum(arr, sum) << endl;
52 }
53 return 0;
54}
55 // } Driver Code Ends

Callers

nothing calls this directly

Calls 1

isSubsetSumMethod · 0.45

Tested by

no test coverage detected