【问题标题】:C# - Every 6-digit combination of a list of numbers (Permutations)C# - 数字列表的每个 6 位组合(排列)
【发布时间】:2012-04-19 11:05:07
【问题描述】:

我希望在给定数字数组的情况下生成每个可能的 6 个数字组合的列表。

即myArray = ['23','65','64','21','76',54','86'...]

输出:

23:21:65:83:91

01:64:22:25:67

61:09:26:81...

...

...

【问题讨论】:

  • 必须提供一些解决方法
  • 可以复制吗?

标签: c# permutation combinations


【解决方案1】:

CodeProject 上有一个非常好的库,可以处理组合、排列和变化。

http://www.codeproject.com/Articles/26050/Permutations-Combinations-and-Variations-using-C-G

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-31
    • 1970-01-01
    • 2010-10-17
    • 2018-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多