Test case 2 not passing… help!!!
Recursion-DictionaryOrder(Larger)
@gauravrai628 Your answers/ permutations are correct but due to the difference in the order of output, test case 2 is getting wrong.
Consider the test case:
231
Expected Output:( according to the fixed test case)
321
312
Your Output:
312
321
Here you are not always required to get the output in sorted order. You have to print the order just as that generated by recursion. Refer this solution:
Thanks got it…