Subset Sum Problem

Detect if a subset from a given set of N non-negative integers sums upto a given value S.
Example:
Set: {1, 3, 9, 2}, S = 5
Output: true


Please try solving this problem before jumping on the solution

Click to learn






Subscribe for more updates



Preparing for interviews? IDeserve team is here to help.




Hone your coding skills!




AngryNerds Practice platform »

Contribution

  • Sincere thanks from IDeserve community to Virendra Karappa for compiling current post.

    Virendra Karappa

    Ninja Programmer