• + 0 comments
    def anagram(s):
        n = len(s)
        if n % 2 != 0:
            return -1
        A = s[:n//2]
        B = list(s[n//2:])
        for a in A:
            if a in B:
                B.remove(a)
        return len(B)