swap each camber characters string


i'd permutations replaced characters pairs string. example:



base string: abcd



combinations:




  1. bacd

  2. acbd

  3. abdc



etc.



edit



i wish barter wholly letters unbroken any other. initial second, second third, nonetheless third sixth.



what's best proceed this?



edit



just fun: there 3 4 solutions, somebody post speed exam those review fastest?



speed test



i finished speed exam nickf's formula mine, law cave violence nickf's during 4 letters (0.08 0.06 10k times) nonetheless nickf's violence during 10 letters (nick's 0.24 cave 0.37)



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members