- 1
write a java script function to get all possible subset with a fixed length ( for example 2 ) combination in an array. sample ar
write a java script function to get all possible subset with a fixed length ( for example 2 ) combination in an array. sample array :( 1 , 2 , 3) and subset length is 2 expected out put :((2,1), (3,1), (3,2), (3,2,1))
1 Odpowiedź
0
Hi, I haven't done it in Java but you could check my phyton program called permutations. You could use the same logic