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
leetcode1133
猜你喜欢
转载自www.cnblogs.com/asenyang/p/11257292.html
今日推荐
周排行