Update backtracking/subset_sum.cpp

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
Swastika Gupta 2021-07-10 12:42:53 +05:30 committed by GitHub
parent 39634ee98d
commit 0387dce9bd
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
*/
uint64_t subset_sum(int sum, const std::vector<int> &in_arr) {
uint64_t subset_sum(uint64_t sum, const std::vector<uint64_t> &in_arr) {
int nelement = in_arr.size();
int count_of_subset = 0;