EbraM96's blog

By EbraM96, history, 7 years ago, In English

Problem: 279C - Ladder

MLE:33920174

AC:33920297

The only difference is at line 66:

MLE: while(~i&&a[i]<=a[i-1])

AC: while(i&&a[i]<=a[i-1])

When i = 0 the array access a[i-1] will be invalid I get that but why does this result a MLE verdict?!

Note: while(~i) is the same as while(i!=-1)

  • Vote: I like it
  • -8
  • Vote: I do not like it

| Write comment?