You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6); // here we are expecting 6 subsets which sum up to 6 i.e.
88
-
// {(3,3),(3,3),(3,3),(3,3),(3,3),(3,3)}
83
+
std::vector<int32_t> array4 = {3, 3, 3, 3};
84
+
assert(backtracking::subset_sum::subset_sum(6, array4) == 6); // here we are expecting 6 subsets which sum up to 6 i.e. {(3,3),(3,3),(3,3),(3,3),(3,3),(3,3)}
0); // here we are expecting 0 subsets which sum up to 6 i.e. we
96
-
// cannot select anything from an empty array
89
+
std::vector<int32_t> array5 = {};
90
+
assert(backtracking::subset_sum::subset_sum(6, array5) == 0); // here we are expecting 0 subsets which sum up to 6 i.e. we cannot select anything from an empty array
0 commit comments