Getting correct answer in my IDE but that same code is giving different output here


#1

Your submission failed for the following input:

A : [ 4, -9, 8, 5, -1, 7, 5, 3 ]

Your function returned the following :

-1

The expected returned value :

1

In my IDE

{4: 1, -9: 1, 8: 1, 5: 2, -1: 1, 7: 1, 3: 1} # for debbuging purpose I am printing
1