Unabe to clear any testcase


It shows the right ans but is unable to clr any testcase

int main() at line no 67
merge(a, 0, n-1 , n/2);
this is incorrect because here mid will be (0+n-1)/2
merge(a, 0, n-1 , (n-1)/2);

similarly at line no 54
this is correct statment
merge(a, m+1, e, (m+e+1)/2);

Modified code

ok, got it, thanks for ur help

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.