You are viewing a single comment's thread. Return to all comments →
python3
def makingAnagrams(s1, s2): from collections import Counter return len(s1)+len(s2)-(Counter(s1)&Counter(s2)).total()*2
Seems like cookies are disabled on this browser, please enable them to open this website
Making Anagrams
You are viewing a single comment's thread. Return to all comments →
python3