+ 2
What does memory limit exceeded means, and how can i fix it?
I had a memory limit on one of my codes (not public), and the output contained the phrase memory limit exceeded. I tried to fix it, but I could not. How do you fix this problem?
6 Antworten
+ 3
These "How to fix this error?" questions without any code are mildly annoying to be honest...
At least give us some context (what were you doing, what language, etc.)
But better just post the code...
+ 3
Fact : Private codes can be shared
as well in the Q/A threads...
+ 1
Here it is.
https://code.sololearn.com/cJ370RndkOh6/?ref=app
+ 1
your while loop has an infinite loop and therefore appends until the memory limit is exceeded.
you need to add "lol += 1" at the end of the loop
+ 1
oh
+ 1
Too careless...