TLE and Run Error

what is the difference between tle and run error.

Tle comes when your code takes more time to solve a query (Time limit exceeded) u need to reduce the time complexity for it.
Runtime error comes due to various cases like when u try to access an index of an array which is larger than the size of the array. or like divideby 0.

1 Like