I should state that this is not a permutation issue and that I would like to do this in C#. I have a variable number of lists of strings and each list has a variable number of elements.
So for example:
List 1: One Two
List 2: Uno Dos Tres
List 3: 1 2 3 4
The results should end up being: OneUno1 OneUno2 OneUno3 OneUno4 OneDos1 OneDos2 OneDos3 OneDos4 OneTres1 OneTres2 OneTres3 OneTres4 TwoUno1 TwoUno2 TwoUno3 TwoUno4 TwoDos1 TwoDos2 TwoDos3 TwoDos4 TwoTres1 TwoTres2 TwoTres3 TwoTres4
The real issue here is that the final list can get very large very fast so I run into problems if I do this in memory, so my thought is to write the strings out to a file as I generate them but I'm having issues trying to figure out the logic/algorithm for doing this.