Wrong answer on submission


#1

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
On this test case, it is showing wrong answer on submission but when I test this using custom input it is showing correct output.
Any help would be much appreciated.


#2

yes he is correct this test case shows correct answer in custom input but not in test.please remove this error ASAP


#3

@saswat-priyadarshan
If you use java then one possible error might be that you are using == to compare Integer objects .
If that is the case then either typecast or use .equals
I don’t know why but for some unknown( to me) reason this error does not occur when testing code in Interview Bit’s IDE