52. Generating all the permutations of a string

Write a function that, prints on the console all the possible permutations of a given string. You should provide two versions of this function: one that uses recursion, and one that does not.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset