From 0387dce9bdf3e863d04354df34894897e5edc71a Mon Sep 17 00:00:00 2001 From: Swastika Gupta <64654203+Swastyy@users.noreply.github.com> Date: Sat, 10 Jul 2021 12:42:53 +0530 Subject: [PATCH] Update backtracking/subset_sum.cpp Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com> --- 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 b9dee734b..df14e9367 100644 --- a/backtracking/subset_sum.cpp +++ b/backtracking/subset_sum.cpp @@ -31,7 +31,7 @@ namespace subset_sum { * @returns count of the number of subsets with required sum */ -uint64_t subset_sum(int sum, const std::vector &in_arr) { +uint64_t subset_sum(uint64_t sum, const std::vector &in_arr) { int nelement = in_arr.size(); int count_of_subset = 0;