Tle in question

i used my code and it gave tle then i used editorial code it still gave tle

There’s some problem at backend! you may try submitting at hackerblocks, also see that complexity of your code should be O(nlogn) and not more than that!

sir it is nlogn but i will try on hackerblocks thankyou

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.