字符组合的所有可能组合
我需要获得遵循规则的所有可能的字符组合。
说:
长度:5-6
字符:ABCabc123
我应该得到这样的东西:
AAAAA
AAAAB
AAABA
AAABB
..
..
AcbC13
有什么方法可以快速有效地做到这一点吗?
请记住,我正在使用 VB.net,但我确实理解与一般性相关的概念。
I need to get every possible combination of characters that follows a rule.
Say:
Length: 5-6
Characters: ABCabc123
I should get stuff back like this:
AAAAA
AAAAB
AAABA
AAABB
..
..
AcbC13
Is there any way to do this quick an efficiently?
Please keep in mind I am using VB.net but I do understand concepts related to just general speaking.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一些很好的代码可以做到这一点: http://www.codeproject.com/ KB/recipes/Combinatorics.aspx
There is some good code to do exactly that here: http://www.codeproject.com/KB/recipes/Combinatorics.aspx