I don't have a lot to say, but this is my little bit.

Friday, October 26, 2012

Recognize Anagrams

Interview question:

How do you determine whether two words are anagrams?

Answer:

Alphabetize the letters in each word, then do a string comparison.

No comments:

Post a Comment