摘要:
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] 阅读全文
摘要:
三、用numpy.pad()对图像进行填充及简单的图像处理 https://blog.csdn.net/wang454592297/article/details/80854996 三、用numpy.pad()对图像进行填充及简单的图像处理 https://blog.csdn.net/wang454 阅读全文
摘要:
一、使用内置函数 def toLowerCase(self, str: 'str') -> 'str': return str.lower() 28ms,12.4M class Solution: def toLowerCase(self, str: 'str') -> 'str': res = ' 阅读全文
摘要:
class Solution: def numUniqueEmails(self, emails: 'List[str]') -> 'int': accept = [] for email in emails: local = email.split('@')[0] domain = email.s 阅读全文
摘要:
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 阅读全文