gritter97's blog

By gritter97, history, 4 years ago, In English

Hi there, could anyone take a look at my submission and advise me on what to change so as to pass the test cases. I keep getting memory limit exceeded for the 17th test case. 75599734. Thank you!!!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You are allocating too much memory for each node, by making it static. Try dynamic memory.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you! It worked!

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Hi.. What exactly is the difference between static and dynamic memory? @gritter97 Can you share the code that worked for you?