You are viewing a single comment's thread. Return to all comments →
def makingAnagrams(s1, s2): d1 = collections.Counter(s1) - collections.Counter(s2) d2 = collections.Counter(s2) - collections.Counter(s1) return sum(i for i in itertools.chain(d1.values(), d2.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 →