• + 1 comment

    I think the key that I was missing is to make the array distinct. But WHY does making the array distinct solve the problem?