Not able to pass any test cases

This is the link to mergesort code. It is giving runtime error, but it works for the testcase provided in the question i.e.

5
3 6 4 1 2

Hey @prerna_gupta31
Your code is fine but using too much memory in case of big arrays that is why u are getting segmentation error
Here I updated ur code and mentioned the changes in comments: https://ide.codingblocks.com/s/334103