http://www.perlmonks.org?node_id=938386


in reply to Re: Challenge: Generate fixed size combination across groups without duplicates
in thread Challenge: Generate fixed size combination across groups without duplicates

JavaFan,
Well, that only works for the sample provided and not the larger problem of a variable number of groups but it is trivial to extend it to the general case. I simply need to reverse the solution I provided in the original problem description:

This is also much simpler than the odometer model solution I came up with last night after posting this. Thanks.

Cheers - L~R