javascript - Algorithm question: Take n elements from an array to generate a new array. How many can be generated?
某草草
某草草 2017-05-18 10:55:51
0
2
534

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!

某草草
某草草

reply all(2)
Peter_Zhu

Questions about permutations and combinations in high school http://www.cnblogs.com/kaiye/...

漂亮男人

High school mathematics, isn’t this just a permutation and combination

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template