Permutations string

in this code if we use vector other than array then there will be no need of backtracking?

Hey @nmaurya760
How does using vector instead of array will affect the algorithm.
We have to restore the original array no matter what.
If you have a solution in which you are not doing that then send that and I will check if its correct or not. :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.