improvement_19's blog

By improvement_19, history, 4 years ago, In Russian

https://codeforces.com/contest/1291/problem/B Please help I am unable to approach this problem have seen several solution as well as editorial but failed to understand 1)why a[I]>I??what will happen if this not take place? 2)why there checking a[n-i-1] with the value n-i-1 ??what is the use of prefix array and suffix end array??

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