pls help with logic are there many ways to solve this questions
What is the logic used here
Hello @pyash,
The logic is same as that for finding all the permutations of a string.
But with an additional conditional check in the base case to check if the current permutation is larger than the given string or not.
Yes, you can approach this question in different ways.
Approach 1:
Approach 2:
But the above mentioned two approaches are similar in one or the other way.
Hope, this would help.
Give a like if you are satisfied.