+ 6

how can i improve time on my codes?

in frapascript it has over 2000 limes of code and it say time limit exceeded

21st Jan 2018, 3:09 PM
Zeke Taylor
Zeke Taylor - avatar
2 Answers
+ 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! 👍
21st Jan 2018, 3:13 PM
Dread
Dread - avatar
+ 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.
21st Jan 2018, 3:14 PM
Jacob Pembleton
Jacob Pembleton - avatar