+ 7

Hey friends when i run my code it shows time limit exeeded........ Why?

h

7th Jun 2017, 7:32 AM
Himanshu Saroj
Himanshu Saroj - avatar
5 ответов
+ 30
Where did you run your code? At the Code Playground, right? It has time limitation to not let users break the server. For example: you may run an infinite loop, but the server will not let it run infinitely.
7th Jun 2017, 7:43 AM
Igor Makarsky
Igor Makarsky - avatar
+ 20
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
7th Jun 2017, 7:45 AM
Burey
Burey - avatar
+ 7
Why does this post has downvotes?
7th Jun 2017, 7:55 AM
Vaibhav Sharma
Vaibhav Sharma - avatar
+ 4
Use pycharm ide to run your code, review your program to avoid long loops. Learn which algorithms are used in python to understand why your program is slow and make your programs run faster. Happy coding
3rd Oct 2017, 3:42 PM
wave rider
+ 2
thanks both of you
7th Jun 2017, 7:52 AM
Himanshu Saroj
Himanshu Saroj - avatar