一种把某个词或句子的字母的位置(顺序)加以改换所形成的新词,英文叫做anagram,词典把这个词翻译成“变位词”。
在词典中找出给定的字符串的所有变位词。
In the dictionary to find the given string to all variable-bit word.
变位词是通过重新排列单词或短语的字母而得到的单词或短语。
An anagram is a word or phrase spelled by rearranging the letters of another word or phrase.
修改一下之前的程序,让它先输出变位词列表中最长的,然后是其次长的,依此类推。
Modify the previous program so that it prints the longest list of anagrams first, followed by the second longest, and so on.
应用推荐