symmetric difference
-
Practice>Python>Sets>Symmetric Differencehackerrank.com 2019. 2. 13. 12:52
Symmetric Differenceproblem link : https://www.hackerrank.com/challenges/symmetric-difference/problem?h_r=next-challenge&h_v=zendifficulty : easy Tipsorted() not sort() :-) is to sort items in a listone set = M - Nother set = N - Mone set.update(other set)covert set to listsort listit's not a tip, it is almost solution :) Solution m = int(input()) Ms = set(map(int, input().split())) n = int(inpu..