Python icon indicating copy to clipboard operation
Python copied to clipboard

Update permutations.py

Open sundaram2021 opened this issue 1 year ago • 1 comments

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?

sundaram2021 avatar Jan 26 '23 07:01 sundaram2021

I have created a new function named as permute2 with the backtracking method

sundaram2021 avatar Jan 26 '23 08:01 sundaram2021