mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-07 05:42:03 +08:00
Update backtracking/subset_sum.cpp
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user