You are viewing a single comment's thread. Return to all comments →
Yep. A simple
print(sum((Counter(s[:l//2]) - Counter(s[l//2:])).values()))
works (after checking the length is even of course). No loop!
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 →
Yep. A simple
works (after checking the length is even of course). No loop!