I have a
List<List<int>>
with no idea of how many integers are there in each list or how many lists are there.
what type of loop could i use so that i get all the possibilities of the integers such that I get one integer from each List.
For example:
Here is the list of integers (each line representing a List of int and the entire thing representing the List of List of int)
1,3
2,4
3,5,6
all combinations are : (1,2,3), (1,2,5), (1,2,6), (1,4,3),(1,4,5),(1,4,6),(3,4,3),(3,4,5),(3,4,6),
(3,2,3),(3,2,5),(3,2,6) which i would like as the result
I prefer to get the combinations as a List of List of int.