Skip to content

Commit

Permalink
1748
Browse files Browse the repository at this point in the history
  • Loading branch information
isinsuarici committed Jan 13, 2022
1 parent 5c4a156 commit 0e17a5e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions E_1748_SumOfUniqueElements.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0e17a5e

Please sign in to comment.