What is time limit exceeded? Any solution? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is time limit exceeded? Any solution?

my c++ program run perfectly on my PC...but when i transfer my code into sololearn playground..no more running.. . only display..time limit exceeded..i dont get it...

30th Sep 2017, 5:30 PM
Andrew Ting Mai Zau
Andrew Ting Mai Zau - avatar
4 Answers
+ 11
try to optimize your code reduce loop count more efficient calculations, etc.... and if that does not help, you can try converting the code to JS you can loopy loop all you want there :)
30th Sep 2017, 6:04 PM
Burey
Burey - avatar
30th Sep 2017, 5:38 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
thank you @Burey
30th Sep 2017, 6:33 PM
Andrew Ting Mai Zau
Andrew Ting Mai Zau - avatar
+ 2
the playground have a time limit for code execution if your code takes too long to load (infinite loop, a very long loop) it will show this message
1st Oct 2017, 8:05 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar