diff --git a/E_1748_SumOfUniqueElements.py b/E_1748_SumOfUniqueElements.py new file mode 100644 index 0000000..9d148c8 --- /dev/null +++ b/E_1748_SumOfUniqueElements.py @@ -0,0 +1,8 @@ +class Solution: + def sumOfUnique(self, nums: List[int]) -> int: + retVal=0 + count=Counter(nums) + for (x,y) in count.items(): + if y==1: + retVal+=x + return retVal \ No newline at end of file