Hey ,Can someone please tell me why codechef is not accepting my code??
It is Smallest Pair problem.
Hey ,Can someone please tell me why codechef is not accepting my code??
It is Smallest Pair problem.
TLE on larger test-cases is 'cause your solution is not optimal, try to reduce the complexity to O(N) (but O(NlogN) would also suffice)
Why it is not working for the fourth constraint???
It is showing a TLE which means your solution is not fast enough to pass all test-cases