Merge Sort Question


My code is giving correct output when i am running it on my machine but while i am submitting it, all test cases say run error.
I think the problem is with the constraints. I don’t know how to handle such huge constraints.

hi
dont do line this a[n] either allocate dynamically or hgav e it a size
and gave size in your code to 1000000 to all array used

I am still getting run error in every test case.

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.