what is wrong
Tricky permutations
@vanisinghal0201
your code never reaches the base case of function that’s why it’s not printing anything. simple write these few line after line no. 18
else{
permute(in,i+1);
}
Now your code will print all possible permutations. So inorder not to print duplicates, store all string in set and print them later
@vanisinghal0201
As I can see you have successfully solved this problem. Please mark this doubt as resolved.