0

I need to generate one combination at a time, ie I have a variable of array length and the number to which the combinations will be generated.For example, an array of length 3 and number 5, ie the following sequences should be generated:
[0,0,0]
[0,0,1]
[0,0,2]
[0,0,3]
[0,0,4]
[1,0,0]
and so on until [4,4,4]

0 Answers0