if we pass character array to the function then it we need to backtrack after calling recursion , but whenever we pass string instead of character array then we need to do backtrack!! why?
String Permutation Problem
@sourav_817 character array is an array, and arrays are passed by reference by default. But strings are passed by value. If you have any further doubts then please share the code that you are referring to.
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.