Update backtracking/subset_sum.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Swastika Gupta 2021-07-07 08:44:52 +05:30 committed by GitHub
parent 1992e5b269
commit 92fbb41da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;