Please post the EXACT problem as it was given to you - in addition to your work/thought.I need to find all the combination of 5 elements one from each group of elements, I have X groups each with a different number of elements.
Is there any formula I can use to easily calculate this?
You take one element from each group. You want to end up with 5 elements. So there must be 5 groups. Yet you say that there are X groups. Now do you see why we are confused.I need to find all the combination of 5 elements one from each group of elements, I have X groups each with a different number of elements.