Hey all,
I've been struggling for the past few days with a "recursive" function that was driving me crazy till this moment.
So, the function takes a list of sublists, each sublist containing a number of strings. Then, the function returns a list of lists of all possible combinations that could be generated from this list.
so for example:
the list of lists could be: [["1a", "1b", "1c"], ["2a", "2b"], ["3a", "3d"]]
the result would be:
["1a", "2a", "3a"]
["1a", "2a", "3d"]
["1a", "2b", "3a"]
["1a", "2b", "3d"]
["1b", "2a", "3a"]
["1b", "2a", "3d"]
["1b", "2b", "3a"]
["1b", "2b", "3d"]
["1c", "2a", "3a"]
["1c", "2a", "3d"]
["1c", "2b", "3a"]
["1c", "2b", "3d"]
If any of you has a working strategy to solve this problem, I would be grateful. Thank you.