Created
December 31, 2017 16:33
-
-
Save amulyakashyap09/ecf3644bc98d55d9c0fdb5a820e15bdb to your computer and use it in GitHub Desktop.
Difference of a set | Hackerrank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(input()) | |
enp = set(map(int, input().split())) | |
b = int(input()) | |
fnp = set(map(int, input().split())) | |
c = enp.difference(fnp) | |
print(len(c)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment