We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class Solution: def sumOfUnique(self, A): return sum(a for a, c in collections.Counter(A).items() if c == 1)