Skip to content

Instantly share code, notes, and snippets.

@amulyakashyap09
Created December 31, 2017 16:32
Show Gist options
  • Save amulyakashyap09/d755722b786a657bfee54fd232379e43 to your computer and use it in GitHub Desktop.
Save amulyakashyap09/d755722b786a657bfee54fd232379e43 to your computer and use it in GitHub Desktop.
Intersection Problem | Hackerrank
n = int(input())
enp = set(map(int, input().split()))
b = int(input())
fnp = set(map(int, input().split()))
c = enp.intersection(fnp)
print(len(c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment