why this code is producing wrong output
Subset sum easy
Hi @dakshi
here is d updated code.
instead of using if else in i==n condition,
use if else-if
otherwise ur code will always exit since in starting i!=n and go into else condition and return.
Hope dis helps.