Maheep Kumar.

algorithms

2 posts tagged “Algorithms”. All topics.

Fizz Buzz Pro on Elixir

How I spent way too much time optimizing a children's counting game and went from 2 MiB/s to 3 GiB/s. No regrets.

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.