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.
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.
Trying to solve 295A - Greg and Array using segment tree. Don't have any idea why I am getting WA on case 11.
Here is my code: 295A