code is not running for last two test cases. TLE is obtained.
check out my code.
Not passing all test cases
Hello @pulkit_pandey09,
The way you are defining the size of array is leading to run time error.
And the online judge is sometimes show it as TLE.
I have corrected your code:
Hope, this would help.
Give a like if you are are satisfied.
1 Like