Does anyone have Java code for generating all VARIATIONS WITH REPETITION?
There are plenty of permutation and combination examples available, and variations must be the easiest one... It feels stupid to waste time to reinvent the wheel (it must be plenty of code written for this).
An example of VARIATIONS WITH REPETITION could be like this:
(tupletSize=3, input= A, B)
AAA, AAB, ABA, BAA, ABB, BAB, BBA, BBB
Thanks!