R
resueman
Can somebody help me with this problem:
I have an array of string
dim nSet as Variant
nSet = Array("A", "B", "C", "D")
I want the function to return all the possible
combinations (n items choose k). Then function, getComb
should return:
("AB","AC","AD","BC","BC","CD") when I use getComb(2, nSet)
And
("ABC","ABD","ACD","BCD") when I use getComb(3,nSet)
And
("ABCD") when I use getComb(4,nSet)
Any help is appreciated!
I have an array of string
dim nSet as Variant
nSet = Array("A", "B", "C", "D")
I want the function to return all the possible
combinations (n items choose k). Then function, getComb
should return:
("AB","AC","AD","BC","BC","CD") when I use getComb(2, nSet)
And
("ABC","ABD","ACD","BCD") when I use getComb(3,nSet)
And
("ABCD") when I use getComb(4,nSet)
Any help is appreciated!