You are viewing a single comment's thread. Return to all 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)
Seems like cookies are disabled on this browser, please enable them to open this website
Anagram
You are viewing a single comment's thread. Return to all comments →