Skip to content

Instantly share code, notes, and snippets.

@ddffx
Created September 4, 2017 03:36

Revisions

  1. ddffx created this gist Sep 4, 2017.
    7 changes: 7 additions & 0 deletions gc-foobar-l1-pld.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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));