Can anyone tell me pls what i miss in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone tell me pls what i miss in this code?

Actually it result in wrong output... https://code.sololearn.com/cAGRKQx0VRZ1/?ref=app

24th Apr 2020, 2:40 PM
Piyush Srivastava
Piyush Srivastava - avatar
2 Answers
+ 1
Hello Piyush Srivastava Can you give a short explanation what your code should do?
24th Apr 2020, 7:32 PM
Denise Roßberg
Denise Roßberg - avatar
0
This code returns the no. Of subset present in an array of a given sum. It must return 2 but output is 1.
25th Apr 2020, 11:02 AM
Piyush Srivastava
Piyush Srivastava - avatar