How to expand the time the program runs? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to expand the time the program runs?

I was wondering how to expand the time my program in the playground runs. So, for example, when my program runs for 30 sec to complete longer tasks, how to set this up for the playground? Thx mates, keep it up! Upvoting [or downvoting if you want me to improve my english (just kidding, im doing anyways :p)] would be appreciated.

10th Jun 2018, 11:43 PM
Kevin Kalb
Kevin Kalb - avatar
3 Answers
+ 3
Yeah, you should reduce the time your program runs. I don't know exact limit, though
11th Jun 2018, 10:08 AM
BlazingMagpie
BlazingMagpie - avatar
+ 3
You can't really make programs run longer in code playground on SL. It works that way to prevent infinite loops from running forever on their server. There is no easy way to tell apart a program that runs too long because of infinite loop or because it's supposed to.
11th Jun 2018, 4:18 AM
BlazingMagpie
BlazingMagpie - avatar
0
Firstly, thanks for your reply. Secondly, am i right with my thoughts on this by saying: the only way to expand the time the program runs is by minimizing/improving the computing time? For example: Instead of setting maximum time the server offers higher, i need to lower the time my program runs. Cheers, KK.
11th Jun 2018, 10:05 AM
Kevin Kalb
Kevin Kalb - avatar