Python
Python copied to clipboard
Update permutations.py
Earlier in the permutation function it is creating an infinite recursion which is causing an error
instead of that I used backtracking to get the output
*[x] Fixed a bug or typo in an existing algorithm in permutations.py?
I have created a new function named as permute2 with the backtracking method