Test Case: 5 5 4 3 2 1


#1

it should give 5
but answer is 15 why??

are we considering MAX(sum1 {A[0…N-1]} , sum2 {A[N-1…0] } )???


#2
  • Children with a higher rating get more candies than their neighbors.

#3

Expected output shows 16 only. Make sure to enter size correctly in expected output option