0

Why it is showing execution timed out

How to solve the problem https://code.sololearn.com/ceibA9RBz9eg/?ref=app

19th Mar 2020, 8:51 AM
Harsh Jain
Harsh Jain - avatar
1 Réponse
+ 4
Why here j <= 2*j + 1? Here should be a for(j=1;j<=2*j+1;j++) //change above loop which is 2nd loop of your program with below loop for(j = 1; j <= 2 * a + 1; j++) it will work fine.
19th Mar 2020, 8:54 AM
A͢J
A͢J - avatar