whats wrong in code, its failing two test cases
Recursion dictionary order (larger)
Hello @sktg99,
As per the order in which the permutations should be printed:
- Swapping back is not required.
- Sorting vector is also causing issue.
I have modified your code:
Hope, this would help.
Give a like if you are satisfied.
1 Like