why this code is giving run time error
Merge sort_Recursion and backtracking
Hi @Avishek-Kumar-2445349249011561
You are facing run error because at line number 12 you have declared an array arr of size 100 but 1<=N<=2*10^5 and when size of array a is greater than 100 then you get run time error, so just make it arr[1000000] then all your test cases will pass.
Here is your corrected code :
https://ide.codingblocks.com/s/182976
If your doubt is clear then mark it as resolved.