[Solved] i’m unable to understand how this code works [closed]
Perhaps you have problem understanding the backtrack technique. In this case you should read a little about it: http://en.wikipedia.org/wiki/Backtracking However the code works from the char at position 0 up to 2 following chars. It changes the first char with the folowing, and calls itself with the next char as starting point. Finally switch back … Read more