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]
Asked
Active
Viewed 23 times
0
vasda dsadas
- 1
- 3
-
2So what did you try? This is not a code writing service. – marstran May 04 '22 at 10:03