Merge sort Code not working


Please help

hello @anshufirefox

check now->

About the size of the array. Why is e-s+1 not working, that is the size of required being passes to the function. So the temporary array required should be of the same size, no?

we are storing in temp array from index s onwards na.

if we want to store it from index 0 onwards then e-s+1 will work.
but here in thsi code implementation we are storing elements from index s to index e that whay array size should be atleast e+1

Yeah, makes sense. I am still thinking over it to completely understand it. Allow me to keep this thread open for now, I will ask any follow up doubts if they come, else will close this thread. Thank you Bhaiya.

Please send the link to rate and close the thread tho.

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.