Here is the code:- https://ide.codingblocks.com/s/251243
Why am i getting TLE
Your code is correct. Drop a mail to [email protected] regarding your issue. It will be a backend issue. I will forward a request too
I just now copy pasted the GFG mergeSort code to check ,and it got accepted ,my logic is with same time space complexity but i am getting TLE, is this a backend issue or could it be i missed some corner case or something?
@shikhar07,
Well, your code and logic was correct. But you were getting multiple same recursive calls. https://ide.codingblocks.com/s/251451 here is the edited code for your reference
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.