You are viewing a single comment's thread. Return to all comments →
m=int(input()) M=set(map(int,input().split())) n=int(input()) N=set(map(int,input().split())) l1=list((M.difference(N))) l2=list((N.difference(M))) l=l1+l2 for i in sorted(l): print(i)
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Symmetric Difference
You are viewing a single comment's thread. Return to all comments →