swap each camber characters string
i'd permutations replaced characters pairs string. example:
base string: abcd
combinations:
bacd
acbd
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
Post a Comment