+ 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 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! đ
+ 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.