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
3fb09e4100
commit
1bbebbf10a
@ -74,7 +74,7 @@ static void test() {
|
|||||||
|
|
||||||
// Test 3
|
// Test 3
|
||||||
std::cout << "3rd test ";
|
std::cout << "3rd test ";
|
||||||
std::vector<int> array3 = {1, 1, 1, 1};
|
std::vector<uint64_t> array3 = {1, 1, 1, 1};
|
||||||
assert(backtracking::subset_sum::subset_sum(1, array3) ==
|
assert(backtracking::subset_sum::subset_sum(1, array3) ==
|
||||||
4); // here we are expecting 4 subsets which sum up to 1 i.e.
|
4); // here we are expecting 4 subsets which sum up to 1 i.e.
|
||||||
// {(1),(1),(1),(1)}
|
// {(1),(1),(1),(1)}
|
||||||
|
Loading…
Reference in New Issue
Block a user