You are viewing a single comment's thread. Return to all comments →
M = int(input()) a = set(map(int,input().split())) N = int(input()) b = set(map(int,input().split()))
sym = a.symmetric_difference(b) results = sorted(sym) for result in results: print(result)
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 →
M = int(input()) a = set(map(int,input().split())) N = int(input()) b = set(map(int,input().split()))
sym = a.symmetric_difference(b) results = sorted(sym) for result in results: print(result)