Update backtracking/subset_sum.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
Swastika Gupta 2021-07-10 12:43:28 +05:30 committed by GitHub
parent 1bbebbf10a
commit 4eb142e03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ static void test() {
// Test 4
std::cout << "4th test ";
std::vector<int> array4 = {3, 3, 3, 3};
std::vector<uint64_t> array4 = {3, 3, 3, 3};
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)}