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:45 +05:30 committed by GitHub
parent 4eb142e03f
commit 60fbdbefe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ static void test() {
// Test 5 // Test 5
std::cout << "5th test "; std::cout << "5th test ";
std::vector<int> array5 = {}; std::vector<uint64_t> array5 = {};
assert(backtracking::subset_sum::subset_sum(6, array5) == assert(backtracking::subset_sum::subset_sum(6, array5) ==
0); // here we are expecting 0 subsets which sum up to 6 i.e. we 0); // here we are expecting 0 subsets which sum up to 6 i.e. we
// cannot select anything from an empty array // cannot select anything from an empty array