Anagrams/Deranged anagrams You are encouraged to solve this task according to the task description, using any language you may know. Two or more words are said to be anagrams if they have the same characters, but in a different order. By analogy with derangements we define a deranged anagram as two words with the same characters, but in which the same character does not appear in the same position in both words. The task is to use the word list at http://www.puzzlers.org/pub/wordlists/unixdict.txt to find and show the longest deranged anagram. (Positive, String); (Index_Type => Positive,
Read full article from Anagrams/Deranged anagrams - Rosetta Code
No comments:
Post a Comment