Sherlock and Array

  • + 0 comments

    I think that author has not made any mistakes here..It is properly mentioned in the constraints that 1<=N<=100000 and also mentioned that ** If there are no elements to the left/right, then the sum is considered to be zero. ** Considering both the statements,above test case is a valid one.