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

Function print

CPP/recursion/sum_of_subset.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void print(vector<vector<int>> &ans, int target)
29{
30 cout << "The Subsets with Sum = " << target << " are : \n";
31 for (int i = 0; i < ans.size(); i++)
32 {
33 for (int j = 0; j < ans[i].size(); j++)
34 {
35 cout << ans[i][j] << "\t";
36 }
37 cout << "\n";
38 }
39}
40
41vector<vector<int>> combinationSum(vector<int> &candidates, int target)
42{

Callers 1

combinationSumFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected