You are viewing a single comment's thread. Return to all comments →
def makeAnagram(a, b) -> int: # Write your code here ca, cb = Counter(a), Counter(b) diff = (ca|cb) - (ca&cb) return sum(diff.values())
Seems like cookies are disabled on this browser, please enable them to open this website
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →