I think you missed the test cases like this one: 5 -20 -1 5 16 18 1 I had a wron


#1

I think you missed the test cases like this one:
5 -20 -1 5 16 18
1

I had a wrong solution which got passed in your trivial test case and correctness test cases, but when I had my test case, my wrong solution gave wrong result as 3.


#2

Thanks for pointing that out Soham. Will add that test case.