From 1328571ca48cdb788b33db914606e5ed331b110a Mon Sep 17 00:00:00 2001 From: Swastika Gupta <64654203+Swastyy@users.noreply.github.com> Date: Wed, 30 Jun 2021 00:19:35 +0530 Subject: [PATCH] Update backtracking/subset_sum.cpp Co-authored-by: Filip Hlasek --- backtracking/subset_sum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtracking/subset_sum.cpp b/backtracking/subset_sum.cpp index 31a27f43b..4c6a4f8e0 100644 --- a/backtracking/subset_sum.cpp +++ b/backtracking/subset_sum.cpp @@ -30,7 +30,7 @@ namespace Subsets { */ std::uint64_t subset_sum(int sum, const std::vector &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++) {