Maheep Kumar.

c++

1 post tagged “C++”. All topics.

Generating permutations of a string in Swift

An iterative Swift version of C++'s next_permutation that generates every permutation of a string in lexicographic order, with the algorithm explained.