_Aragorn_'s blog

By _Aragorn_, history, 5 years ago, In English

Hi, I am trying to solve 514D - R2D2 and Droid Army using Sliding Window and Sparse Table. Everything looks fine, but don't know why I am getting WA on Test case 21.

Here is my code : Solution.

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

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

It is possible that L becomes greater than R.

For example: 2 1 1 2 1

The answer is 1 but your solution gives 0.