You are viewing a single comment's thread. Return to all comments →
def makingAnagrams(s1, s2): c1 = Counter(s1) c2 = Counter(s2) return sum((c1-c2).values())+sum((c2-c1).values())
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 →