Check Subset

  • + 0 comments
    from collections import Counter
    
    n = int(input())
    a = Counter(sorted(list(map(int, input().strip().split()))))
    b = [i for i,j in a.items() if j<n]
    print(*b)``