HubyBee's blog

By HubyBee, history, 4 weeks 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

»
4 weeks 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.