You are viewing a single comment's thread. Return to all comments →
replacing common alphabets in strings with null works!
def number_needed(a, b): for i in a: if i in b: b=b.replace(i,'',1) a=a.replace(i,'',1) return len(a)+len(b)
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 →
replacing common alphabets in strings with null works!