najmul.csebuet's blog

By najmul.csebuet, history, 4 months ago, In English

Hi I am trying to solve Sorting Substrings. While trying with this submission I am getting MLE. I am new to C++. Can you please point out the cause for this error? Thanks!

Code
 
 
 
 
  • Vote: I like it
  • -1
  • Vote: I do not like it

»
4 months ago, # |
  Vote: I like it +3 Vote: I do not like it

it is Memory limit Exceeded.

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

Please send your code since the submissions from the educational problems aren't visible.

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

    Thanks for commenting. Added code. Pls take a look? I can explain my logic if needed.

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

Auto comment: topic has been updated by najmul.csebuet (previous revision, new revision, compare).

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    4 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Right, I found one reason. Just changed [allCnt] to [&] in the Comparator. Now MLE is gone but TLE is there.