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)