Skip to content

Instantly share code, notes, and snippets.

@ddffx
Created September 4, 2017 03:36
Show Gist options
  • Save ddffx/8fc686556689c1bfec3f44a848bd505f to your computer and use it in GitHub Desktop.
Save ddffx/8fc686556689c1bfec3f44a848bd505f to your computer and use it in GitHub Desktop.
gc-foobar-l1-pld created by ddffx - https://repl.it/KeDO/0
def answer(x, y):
return (set(x).symmetric_difference(y)).pop()
a = [1,2,3,4];
b= [1,2,3,6,4];
print(answer(b,a));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment