Error in test case 3

@sr30
please specify the question

https://codeforces.com/problemset/problem/1339/B
I had commented the question in the code.

Hi @sr30
sorry for the late reply.
u can refer to my code for the time being.


i had used the same approach but in opposite way i.e rather than going out in am approaching the middle of array.
I will try to check and debug ur code and will share the corrected code.
Hope dis helps.

Thanks for the code.

ur reverse approach I got but my way should also work. I guess I made some error in my code. Kindly see if u can spot it.

@sr30
ur code is failing on case -1 -2 -3 -4
Hope dis helps