What is TLE , Explain TLE in Detail

What is TLE . One Of my Test Case answer message is TLE.

@bundelepalash
your code is not even working for sample testcase. I am telling you why. Consider sample testcase
5
1
3
4
2
5
5
After sorting your array is [1,2,3,4,5] and target is 5. when you start loop with i=0 and j=4, you’ll find that ar[i]+ar[j] i.e ar[0]+ar[4] = 1+ 5 =6 which is greater than target . Now this satisfy second condition inside loop, Now your code do i–,j++ which makes i=-1 and j=5.
In next iteration your i become 0 again and j=4. So same stuff happened again and again and your code will stuck in infinite loop

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.