why is that program is passing all the test cases when i am commenting out the Backtrack case and the sorting operations in the main which i was doing to form the desired result.
Why is it so that on avoiding backtracking my answer is correct? it should not be correct as on avoiding backtracking in case of string permutations the string is changed for subsequent calls while returning…
pls give reason for thiss that why we are not backtracking…???