Bit Manipulation: Lonely Integer

  • + 0 comments

    Another way of doing the code: def findLonely(arr): array = list(set(arr)) for i in range(len(array)): if arr.count(array[i]) !=2: return array[i]