Lonely Integer

  • + 0 comments

    from collections import Counter

    def lonelyinteger(a): count = Counter(a) for key,val in count.items(): if val == 1: return key