Tricky permutations problem


what are the errors in this code??

Do it using string , check now ->
https://ide.codingblocks.com/s/424751

Thanks, also why didnt it work with char??

If you want to do it with char then make 2d array for each string of character, store it by running for loop, long process. That’s why have suggested to use string, easy to understand.

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.