I want a combination algorithm,…to multiple the elements in the array, to every other element but itself….
please help me to combine eg:: {1,2,3,4,5,6}
output:: 1*2,1*3….1*6, 1*2*3 !*2*4…….1*2*3*4*5*6…….5*6
code removed it was irrelevant to my logical requirement of question…
I believe this is what you are looking for:
I put in class
Test… Here is my testing method:I realized that this wasn’t what the question asked for… I think… I can’t really tell…
Anyway, I wrote an alternative method:
But then I realized that might not be what you want either. The fact is, I actually have no fricking clue what you are looking for, I can’t understand your post. I have just been trying to glean info from the comments.