mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update backtracking/subset_sum.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
parent
4eb142e03f
commit
60fbdbefe1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user