Merge Sort having tle

Im getting a TLE in my code
My code:

hello @Prankur-Tewari-2574939259288733,
image

a)u cannot declare an array of that big size
b)loop is not correct.
if should be
a[i]=b[i-s];

because u have initialised k with 0 so it will store values from 0 and not from s.

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.