wrong ans,only 14 test cases passed
Leetcode question :delete and earn
i am not able to understand what logic is being used in the case of include.
i am not able to understand what logic is being used in the case of include.Why a[i]*i is done?
okay i understood the approach.
but what was not correct in my previous approach?
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.