Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created June 30, 2016 16:49
Show Gist options
  • Select an option

  • Save libert-xyz/9b8d9ecd3e44f25c5a9b018ae0482392 to your computer and use it in GitHub Desktop.

Select an option

Save libert-xyz/9b8d9ecd3e44f25c5a9b018ae0482392 to your computer and use it in GitHub Desktop.
Sets - Symmetric Difference
#6/30/16
#https://www.hackerrank.com/challenges/sets/forum
raw_input()
n1 = set(map(int,(raw_input().split())))
raw_input()
n2 = set(map(int,(raw_input().split())))
u = n1.symmetric_difference(n2)
l = list(u)
l.sort()
for i in l:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment