SamCart interview question

Find out if two strings are anagrams.

Interview Answer

Anonymous

2 Feb 2016

You can either sort the strings or add each letter of each string to a key value store where key is a letter that exists in the string and value is the number of times it exists, and compare the two.