in this code if we use vector other than array then there will be no need of backtracking?
Permutations string
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.
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.