摘要: 题目描述: python提交: import collections class UndergroundSystem: def __init__(self): self.idloop = collections.defaultdict(list) self.count = collections.d 阅读全文
posted @ 2020-03-29 15:11 oldby 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 题目描述: python提交:O(N^3) class Solution: def numTeams(self, rating: List[int]) -> int: ans = 0 for i in range(len(rating)): for j in range(i,len(rating)) 阅读全文
posted @ 2020-03-29 14:57 oldby 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目描述: python提交: from typing import List import collections class Solution: def findLucky(self, arr: List[int]) -> int: dic = collections.Counter(arr) 阅读全文
posted @ 2020-03-29 14:39 oldby 阅读(119) 评论(0) 推荐(0) 编辑