mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update backtracking/subset_sum.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
27a1fdfbcc
commit
4961e4436b
@ -6,7 +6,7 @@
|
|||||||
* We are given an array and a sum value. The algorithms find all
|
* We are given an array and a sum value. The algorithms find all
|
||||||
* the subsets of that array with sum equal to the given sum and return such
|
* the subsets of that array with sum equal to the given sum and return such
|
||||||
* subsets count. This approach will have exponential time complexity.
|
* subsets count. This approach will have exponential time complexity.
|
||||||
* @author [Swastika Gupta](https://github.com/swastyy)
|
* @author [Swastika Gupta](https://github.com/Swastyy)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cassert> /// for assert
|
#include <cassert> /// for assert
|
||||||
|
Loading…
x
Reference in New Issue
Block a user