什么是产生字谜的最佳策略.
Run Code Online (Sandbox Code Playgroud)An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once; ex.
- 十一加二是十二加一的字谜
- 小数点是我是一个圆点的字谜
- 天文学家是月球凝视者的字谜
起初它看起来很简单,只是混杂字母并生成所有可能的组合.但是,只生成字典中的单词的有效方法是什么呢?
我遇到了这个页面,在Ruby中解决了字谜.
但你有什么想法?