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: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
1992e5b269
commit
92fbb41da1
@ -31,7 +31,7 @@ namespace subset_sum {
|
|||||||
* @returns count of the number of subsets with required sum
|
* @returns count of the number of subsets with required sum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::uint64_t subset_sum(int sum, const std::vector<int> &in_arr) {
|
uint64_t subset_sum(int sum, const std::vector<int> &in_arr) {
|
||||||
int nelement = in_arr.size();
|
int nelement = in_arr.size();
|
||||||
int count_of_subset = 0;
|
int count_of_subset = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user