You are viewing a single comment's thread. Return to all comments →
Create 2 hashmaps in order to store the occurance if each character in each of the strings.
Iterate through the hashmaps and compare the two hashmaps in order to get the count of characters to be deleted.
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 →
Create 2 hashmaps in order to store the occurance if each character in each of the strings.
Iterate through the hashmaps and compare the two hashmaps in order to get the count of characters to be deleted.