in the video sir has said something about usefulness of set stl in storing permutations of a number having repeated digits.
i did not understand what sir said,would it be ok if u tell it elaborately?
Permutations issue
sir said that if you have to find permutation of string whose character may repeat
for ex aab
then permutation for this after calculating using recursion comes
aab,aba,aab,aba,baa,baa
but actualy they are aab, aba, and baa
so to get this we can insert/store them in a set
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.