Merge Sort Doubt

Here is the code:- https://ide.codingblocks.com/s/414875, of merge sort implemented, but giving error or tle, please specify the error made. Do comment the update so that I may know where is the mistake went.

Hello @Sakshi2004

image

here use if instead of while becuae u r making recusive call

check ur updated code here->

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.