标签:ons code enum pre items lis and number self
1 import collections 2 class Solution: 3 def largestUniqueNumber(self, A: ‘List[int]‘) -> int: 4 obj = collections.Counter(A) 5 re = -1 6 for k,v in obj.items(): 7 if v == 1 and k >re: 8 re = k 9 return re
标签:ons code enum pre items lis and number self
原文地址:https://www.cnblogs.com/asenyang/p/11257292.html