List all possible combinations of k integers between 1…n (n choose k)

后端 未结 4 474
萌比男神i
萌比男神i 2021-02-05 21:42

Out of no particular reason I decided to look for an algorithm that produces all possible choices of k integers between 1...n, where the order amongst the k integer doesn\'t mat

4条回答
  •  我在风中等你
    2021-02-05 22:20

    This guy seems to have done serious work in combinatorics using C# (CodeProject) :

    Permutations, Combinations, and Variations using C# Generics

提交回复
热议问题