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

 

posted on 2019-07-27 23:28  Sempron2800+  阅读(134)  评论(0编辑  收藏  举报