What is the time limit of the while loop? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the time limit of the while loop?

31st Oct 2016, 6:02 AM
Karan Jain
Karan Jain - avatar
4 Answers
+ 3
you define the limit . if your loop doesn't have limit then your program will crush
31st Oct 2016, 7:57 AM
imaqtpie
imaqtpie - avatar
+ 1
If you mean a time limit here in sololearn, or similar web servers with compilators. Yeah, there is a time limit for running program. Just beause a thousands users use the server. But the time limit would be enough to run all examples, or simple programs. If you exceed the time limit in loop, there is probably a bug in your program - the loop gets endlessy.and must be break, Next this,there are on some servers a competetions of coding. The faster program can win. So the time limit there is very short...
31st Oct 2016, 8:11 AM
Petr Hatina
Petr Hatina - avatar
+ 1
there is no time limit it depends on your parameters
31st Oct 2016, 5:23 PM
Kemal Derinsu
Kemal Derinsu - avatar
0
The time limit of WHILE loop is the condition, once the condition became false WHILE loop will not be executing any more.
1st Nov 2016, 10:34 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar