You are viewing a single comment's thread. Return to all comments →
I think that author has not made any mistakes here..It is properly mentioned in the constraints that
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.