摘要: 1 class Solution: 2 def isArmstrong(self, N: int) -> bool: 3 ns = str(N) 4 lens = len(ns) 5 sums = 0 6 for n in ns: 7 cur = int(n) 8 sums ... 阅读全文
posted @ 2019-07-27 23:32 Sempron2800+ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 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 retu 阅读全文
posted @ 2019-07-27 23:28 Sempron2800+ 阅读(134) 评论(0) 推荐(0) 编辑