We have X number of data sets, of Y length each.
For example...
Small, Medium, Large
and
Red, Green, Blue, Yellow
We need to generate a list of all possibilities
Small Red
Small Green
Small Blue
Small Yellow
Medium Red
Medium Green
.... etc.
The catch...
There can be any number of data sets, and they can be of any length.
Any idea on the algorithm to do this?
I've seen some examples where they just have several nested for loops,
but there could be any number of datasets.
Any help is appericated!
For example...
Small, Medium, Large
and
Red, Green, Blue, Yellow
We need to generate a list of all possibilities
Small Red
Small Green
Small Blue
Small Yellow
Medium Red
Medium Green
.... etc.
The catch...
There can be any number of data sets, and they can be of any length.
Any idea on the algorithm to do this?
I've seen some examples where they just have several nested for loops,
but there could be any number of datasets.
Any help is appericated!
Comment