Mergesort problem

getting tle

Check now

getting run error on submitting

Check the constraints
Constraints

1<=N<=2*10^5

So increase the size of your temp array to a larger value

then also gettin g error

Crosscheck with this

getting run error

The code which i provided above passed all the test cases on my side. Please check again.
Or try to submit it on hackerblocks

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.