MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / number_of_subsets

Function number_of_subsets

backtracking/subset_sum.cpp:34–50  ·  view source on GitHub ↗

* @brief The main function implements count of subsets * @param sum is the required sum of any subset * @param in_arr is the input array * @returns count of the number of subsets with required sum */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected