For example, if you take the array [1,2,3] and take 2 elements to generate an array, there will be three situations: [1,2], [1,3], and [2,3] (the same number inside will be counted as one) (for example, [1,2] and [2,1] are considered the same), please implement it, preferably js? Please give me more advice!
Questions about permutations and combinations in high school http://www.cnblogs.com/kaiye/...
High school mathematics, isn’t this just a permutation and combination