Subset sum easy

why i didnt get output
https://online.codingblocks.com/app/player/51965/content/34154/4760

*correct output…

Hello @suhailrashidsalma

Please save your code on ide.codingblocks.com and share the link that comes up after saving the code.

Hello @suhailrashidsalma

Line 6 should be (s > e) && Not (s >= e) because if there is only one element, you still got to make a choice for that element (to include it to the sum or Not).

Here is the modified code

Let me know if you still need any help.

2 test case are getting wrong

thanks… getting correct output