sir here we need to print the combination which is largest(lexographically) or just the one which is larger as compared to the given string.
I thought of using next_permutation but was not able to find the base case.
please help
Dictionary order-large
@Megha2468
hello Megha,
u need to print all all possible permuations of given strings that are greater than it.
for example
if string is ab
then all possible permuations of this string is ab and ba
here only ba is greater than given string (i.e ab) so it will be in our answer.