How to use sleep() function in loop, I give [Time limit exceeded] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use sleep() function in loop, I give [Time limit exceeded]

This is my test code https://code.sololearn.com/w8d5u579S1cN

13th Sep 2017, 11:13 AM
Lương Văn Của
Lương Văn Của - avatar
3 Answers
0
I think it would work outside of sololearn or if you lowered the time it takes being idle so the compiler doesnt think it will be infinite.
13th Sep 2017, 11:31 AM
Enzo
Enzo - avatar
0
thank your respon, but on my server too
13th Sep 2017, 12:35 PM
Lương Văn Của
Lương Văn Của - avatar
0
I tested it on a local server and it worked fine
13th Sep 2017, 12:38 PM
Enzo
Enzo - avatar