mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-24 05:42:59 +08:00
Update subset_sum.cpp
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Subsets {
|
|||||||
* @returns count of the number of subsets with required sum
|
* @returns count of the number of subsets with required sum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::uint64_t subset_sum(int sum, std::vector<int> &in_arr) {
|
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(); //number of subset element
|
||||||
int count_of_subset = 0;
|
int count_of_subset = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user