You are viewing a single comment's thread. Return to all comments →
Tried it using the minus operator.
ac = Counter(a) bc = Counter(b) return sum((ac - bc).values()) + sum((bc-ac).values())
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →
Tried it using the minus operator.