I tried to code this myself and terribly failed. This is basically what I want:
a b ... z aa ba ... za ab bb ... zz aaa baa ... zzz
In the end, he had to generate every line that is shorter than N characters encoded with az. Therefore, I am not looking for permutations (of which 1001 implementations can be found on the Internet), but for combinations with replacement (at least how it was called in Python), Order is not important , speed.
orlp
source share