To find the number of subset that adds upto a particular number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

To find the number of subset that adds upto a particular number

eg:int a[]={2,4,6,8,10}; (2,4,10) (2,6,8) (6,10) therfore it should give output: 3

24th May 2018, 1:26 AM
Phurba Sherpa
Phurba Sherpa - avatar
2 Answers
+ 1
So you want help on how to do it?
24th May 2018, 1:30 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
no i wanted to see all sort of logic
24th May 2018, 2:25 AM
Phurba Sherpa
Phurba Sherpa - avatar