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

Function main

Recursion/Code/subsetSum.cpp:42–60  ·  view source on GitHub ↗

{ Driver Code Starts.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isSubsetSumMethod · 0.45

Tested by

no test coverage detected