where do I call the function for lexicography in my code
The problem tricky permutations
Hello @Saransh99,
To print the strings in lexicographical order.
Just sort the characters of input string before passing it to the function:
sort(a.begin(),a.end());
printPermutationsNoDuplicates(a,"");
Hope, this would help.
Give a like, if you are satisfied.
thankuuu :))))))))))))))))))))))))
Please, mark this doubt as resolved.
BTW, i wonβt mind a like.
1 Like