Print permutation of string

questiion is on algo++ contest by name recursion dictionary order. in this we have to print all the combination of string less than the input string. my solutiion is failing in two testcases out of four please check it and provide me the solution i have tried both recursive nd iterated method. here is link to my iterative code http://ide.codingblocks.com/#/s/18998

Vaibhav do simple permutation and do not backtrack it also in base case check wheather less or not

http://ide.codingblocks.com/#/s/19008

bhhaiya still failing in two test cases please provide code for it or check my code above.

check this
http://ide.codingblocks.com/#/s/19027

1 Like