+ 1
Time limit exceeded!
The following code is for the SpyNumber challenge..it seems correct but the compiler is showing "time limit exceeded"..help me out.. https://code.sololearn.com/c5yHzdugCGsG/?ref=app
3 Answers
+ 4
line 20, the loop condition should be changed to "a>0" as 0 divided by anything remains 0 causing an infinite loop
+ 1
it's still showing time limit exceeded..
+ 1
Neil Bhowmik works for me