如何在 javascript 中创建一个单词的所有可能的字谜列表?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6215725/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I create a list of all possible anagrams of a word in javascript?
提问by manraj82
How do I create a list of all possible anagrams of a word in javascript?If this question has already been asked please direct me to the answer?
我如何在 javascript 中创建一个单词的所有可能的字谜列表?如果已经问过这个问题,请指导我回答?
Thank You
谢谢
回答by Town
Here you go: Anagrams finder in javascript
I'm not sure whether that's the exact same problem as yours, but there look to be a few good solutions in the answers.
我不确定这是否与您的问题完全相同,但答案中似乎有一些很好的解决方案。
EDIT:Actually, this is what you need: Is there any pre-built method for finding all permutations of a given string in JavaScript?
编辑:实际上,这就是您所需要的:是否有任何预先构建的方法可以在 JavaScript 中查找给定字符串的所有排列?