¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 6
how can i improve time on my codes?
in frapascript it has over 2000 limes of code and it say time limit exceeded
2 Respuestas
+ 6
Try and optimize your memory intake!
Look at your lines, and see if there is anything that you can change that will take up less memory! 👍
+ 3
It’s more likely that there is a bug somewhere in the program that causes an infinite loop, although if this is a time or memory problem, you could first try to get rid of as much of the code and variables as you can. You could also switch to a language that supports pointers and pass by reference instead of value as long as you don’t have to change the parameter’s value in the function.