when I run this code in coding blocks ide I am not getting any error but when I run the same code in other ide then I am getting error of TLE…why?
Getting error of TLE
@Tanushree check following things in your code-
- you don’t need to take input in array just make it all 0.
- at line 13 of your code you should update a[ j ] but you are updating a[ i ]=0.
- give cout to print your answer.
sorry actually I sent u the wrong link
this is the correct link …can u plz tell me why I am getting here tle?
okk…now it is showing correct output when I made it i++,but I have a confusion…when prateek sir took it as i=i+2 then it didnot show any error…why?and I am going to the odd places which is not marked…
Okay…srry for the mistake…Thanks
1 Like
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.