Cartesian power - via recursion
问题 The original question is here: Cartesian power (a special Cartesian product) -- choose elements from array, in repeatable style In the old question, there are already answers gave a solution via iteration. I am wondering is there a recursive solution, similar as the solution from following link, which print permutations with recursion: https://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/ Currently I have wrote following program, which is not correct yet