Skip to main content
edited title
Link
Stacky
  • 141
  • 5

String permutation iterative improvements?

added 2 characters in body
Source Link
Stacky
  • 141
  • 5

I'veI have written some code (below) which iterates over each character of a string and adds that character to every index of previous permutations.

I've written some code (below) which iterates over each character of a string and adds that character to every index of previous permutations.

I have written some code (below) which iterates over each character of a string and adds that character to every index of previous permutations.

edited body
Source Link
Stacky
  • 141
  • 5

Please review code and how it could be improved while keeping it iterative. I am particularly looking for improvements to my existing code, rather than alternative solutions(if possible), so that I can better understand the optimisationoptimization process.

Please review code and how it could be improved while keeping it iterative. I am particularly looking for improvements to my existing code, rather than alternative solutions(if possible), so that I can better understand the optimisation process.

Please review code and how it could be improved while keeping it iterative. I am particularly looking for improvements to my existing code, rather than alternative solutions(if possible), so that I can better understand the optimization process.

added 1 character in body
Source Link
Stacky
  • 141
  • 5
Loading
added 1 character in body
Source Link
Stacky
  • 141
  • 5
Loading
Tweeted twitter.com/StackCodeReview/status/779799517768146944
Readability improvements
Source Link
forsvarir
  • 11.8k
  • 7
  • 39
  • 72
Loading
added 96 characters in body
Source Link
Stacky
  • 141
  • 5
Loading
edited title
Link
Stacky
  • 141
  • 5
Loading
added 13 characters in body; added 33 characters in body; added 1 character in body
Source Link
Stacky
  • 141
  • 5
Loading
added 372 characters in body; added 268 characters in body; added 94 characters in body
Source Link
Stacky
  • 141
  • 5
Loading
added 75 characters in body
Source Link
Stacky
  • 141
  • 5
Loading
deleted 76 characters in body
Source Link
Stacky
  • 141
  • 5
Loading
added 150 characters in body
Source Link
Stacky
  • 141
  • 5
Loading
Source Link
Stacky
  • 141
  • 5
Loading