Skip to content

Instantly share code, notes, and snippets.

@shounaklohokare
Created Dec 21, 2020
Embed
What would you like to do?
def acmTeam(topic):
ans = []
for i in range(n):
for j in range(i+1, n):
know=0
for a,b in zip(topic[i], topic[j]):
if a=='1' or b=='1':
know+=1
ans.append(know)
return [max(ans), ans.count(max(ans))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment