You are viewing a single comment's thread. Return to all comments →
Here's my code
el = int(input()) e = set(list(map(int, input().split()))[:el]) fl = int(input()) f = set(list(map(int, input().split()))[:fl]) print(len(e.intersection(f)))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →
Here's my code