Recursion dictionary order (larger)

whats wrong in code, its failing two test cases

Hello @sktg99,

As per the order in which the permutations should be printed:

  1. Swapping back is not required.
  2. Sorting vector is also causing issue.

I have modified your code:

Hope, this would help.
Give a like if you are satisfied.

1 Like