How to remove tle in this
What’s the error plz tell
I hv written if(I<0 and target not0)return0;
If target==0 return true I think its same correct me if wrong???
@Namanjain123
no they are not.
for example if i< 0 and target not equal to zero then none of first two if statement will execute and u will be acessing negative index which will give u run error.
thanks i was accesing dp[-1]
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

