+ 2

Time exceeded

sometimes the code doesn't compile fully. it shows "time limit exceed"... what should I do make the code compile full... thx

19th Jul 2017, 9:31 PM
nabeer zahed chowdhury
nabeer zahed chowdhury - avatar
2 Respostas
+ 10
Are you referring to your newest code? It may be short, but the lines in the for loops execute several thousand times, which takes a long time to execute! SoloLearn's servers halt your code early if it runs for too long. I would recommend using an IDE on a computer, where time isn't an issue, or setting a smaller cap for input. Or perhaps try a different algorithm.
19th Jul 2017, 10:28 PM
Tamra - avatar
+ 5
Use an IDE/different compiler. If execution lasts to long CodePlayground will cut it off. Also make sure there's no infinite loops or that your code can be cut down.
19th Jul 2017, 9:34 PM
Rrestoring faith
Rrestoring faith - avatar