Test cases giving run time error
Hey @lakshit in the merge function since your temp array is only of size n you cant start with k = s, you’ll have to start with k = 0. Again you’ll have to start from 0 while assigning temp values to a.
Here is the link to the code with rectifications. https://ide.codingblocks.com/s/174161 i have added comment against the mistakes and added new code just below it.
If you still have any further queries please feel free to ask.
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.
