How to sort permutataion output?
Https://ide.codingblocks.com/s/282672
hello @Prabhleen_sheenu
put all ur valid string in vector and then sort ur vector using inbuild sort function
output-ABC ACB ABC ACB ACB ABC
no not like this.
first store all the generated permuations in a vector .
and then after sort the vector
sir
sort function does not works for char array?
it works .
but our requirement is different.
wait i will modify it .and share it with u
1 Like
sir use of line 10 in code?
it converts char arr into c++ string .
sir so we are converting char array to string s ?
iske bina bhi push ho parha hai vaise vector v main.
maine vetcor of string banaya hai ,isliye string mein convert kar raha hu
hnji got it.thank you sir