• + 1 comment

    An one-liner in Python:

    return 2*sum(set(a))-sum(a)