Update backtracking/subset_sum.cpp

Co-authored-by: Filip Hlasek <fhlasek@gmail.com>
This commit is contained in:
Swastika Gupta 2021-06-30 00:19:35 +05:30 committed by GitHub
parent a32b32f01c
commit 1328571ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ namespace Subsets {
*/
std::uint64_t subset_sum(int sum, const std::vector<int> &in_arr) {
int nelement = in_arr.size(); // number of subset element
int nelement = in_arr.size();
int count_of_subset = 0;
for (int i = 0; i < (1 << (nelement)); i++) {