Well neat, the naive solution (using maps) to calculating string permutations is about 100x slower than an array-based solution for long strings.

https://willbeason.com/2025/05/08/optimization-problem-1-3-string-permutations/

Comments