HERE IS THE CODE
Please answer the comment in code i dont understand
Hi @hhiteshbansal_40d12e2460a1738e
In that particular recursive call we are doing work in array from s to e… so starting is not always from 0th index, hence u can’t assign k with 0, u will have to initialise k with s only…
Yes but in temp array why we are starting from s even if it is again initialize with next function call so can’t we take it zero
If u start from 0 then, in the final step when u assign from temp to original array, then u will have to access the index accordingly…
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.