Getting Wrong answer but compilation is successful

It is frustrating with the support provided by Leetcode. I think, they only care for paid customers.

I tried to solve this problem Contain Duplicates using hashtable. When I submitted it, it complained error for input [3,1]. But when I tried that input manually, it ran correctly. Why is this happening?

Comments (1)