I am looking for an algorithm (or a C-like implementation, no itertools available) which generates all tuples
[a_0 a_1 … a_(n-1)] such that 0 <= a_i <= i + 1. Pointers to literature are also welcome.
I am looking for an algorithm (or a C-like implementation, no itertools available) which
Share
something like this?