摘要: class Solution: def repeatedNTimes(self, A: List[int]) -> int: if len(A)&1 > 0: return -1 aa = set(A) bb = {} for a in aa: bb[a] = 0 for i in A: bb[i] 阅读全文
posted @ 2019-02-25 13:30 bluedream1000 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 三、用numpy.pad()对图像进行填充及简单的图像处理 https://blog.csdn.net/wang454592297/article/details/80854996 三、用numpy.pad()对图像进行填充及简单的图像处理 https://blog.csdn.net/wang454 阅读全文
posted @ 2019-02-22 16:14 bluedream1000 阅读(2601) 评论(0) 推荐(0) 编辑
摘要: 一、使用内置函数 def toLowerCase(self, str: 'str') -> 'str': return str.lower() 28ms,12.4M class Solution: def toLowerCase(self, str: 'str') -> 'str': res = ' 阅读全文
posted @ 2019-02-22 09:52 bluedream1000 阅读(139) 评论(0) 推荐(0) 编辑
摘要: class Solution: def numUniqueEmails(self, emails: 'List[str]') -> 'int': accept = [] for email in emails: local = email.split('@')[0] domain = email.s 阅读全文
posted @ 2019-02-21 10:38 bluedream1000 阅读(125) 评论(0) 推荐(0) 编辑
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2019-02-19 10:59 bluedream1000 阅读(167) 评论(0) 推荐(0) 编辑