Saturday, July 4, 2009

Generate all the anagrams of a string

Interview question: Generate all the anagrams of a string. Assume you have a dictionary of words (like English dictionary). In efficient space and time.

No comments:

Post a Comment