1748. Sum of Unique Elements
class Solution: def sumOfUnique(self, nums: List[int]) -> int: nums = collections.Counter(nums) answer = sum(filter(lambda x : nums[x] == 1, nums)) return answer