标签:def 技术 index collect ons 图片 pre ima mic
题目描述:
提交:
class Solution: def peopleIndexes(self, f: List[List[str]]) -> List[int]: res = [] dic = collections.defaultdict(list) for i in range(len(f)): for j in f[i]: dic[j].append(i) for i in range(len(f)): L = [] for j in f[i]: L.append(dic[j]) P = set(L[0]).intersection(*L[1:]) if len(P) == 1: res.append(i) return res
标签:def 技术 index collect ons 图片 pre ima mic
原文地址:https://www.cnblogs.com/oldby/p/12919094.html