Sum It Up Challenge


whats wrong in this code

@naazsayma123 i dont understand what you are doing in the recursive case? Can you please elaborate?

i am trying to increase the value of i by freq everytime,and j by value of k and sum by next element value

@naazsayma123 I dont think this approach will work for all cases. You can dry run it to be more clear.
You can refer to this code meanwhile.

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.