I'm completely lost on this. I can do this iteratively, but recursion is new to me. If I'm given an arraylist with 1, 2, 3 inside of it, the total possible combos with repeats is 27.
111, 112, 113, 121, 122, 123, etc...
how can I find this recursively? I'd show my code but I'm not even close to getting the concept...
You can use this concept and make your own recursive function. using that you can get all possible combinations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With