Recursion-Dictionary Order(Larger)

its not giving any output , please tell me what is the error

Can you explain your logic for this problem?

i have first of all made all the permutaions by recursion and saved all of them in the arraylist, and returned it . For taking considerations of the duplicate , i have taken one more function which will handle to not to have duplicates, at the end when the arraylist is returned , i have sort the items in the array list in lexico order and printed it

your permutation function is not working properly, check that.
Also, for removing duplicates, you can have a hashset instead of arraylist, it only contains non duplicates elements. And to sort the arraylist lexicographically, you can just do Arrays.sort or Collections.sort, it will do the same.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.