Interview Cake Clojure Solutions
This repository contains most solutions (32/44), with corresponding unit tests, for the problems defined on interview cake. The solutions are implemented in Clojure as idiomatically as possible and attempt to follow the guidelines outlined in the clojure-style-guide.
Some problems are left unsolved either because they are mostly theoretical, discussion based, or do not fit nicely with Clojure (eg. problems dealing purely with mutation).
Running The Problems
Each problem is defined as its own self contained Clojure leiningen project. To run, first make sure to have leiningen installed. Then, after cloning the main repository, cd
into the directory of a problem and either run the unit tests with lein test
or launch the Clojure REPL with lein repl
.
A Few Favorites
- recursive-string-permutations
- highest-product-of-three
- find-rotation-point
- in-place-shuffle
- rectangular-love
- simulate-7-sided-die
Contributing
Contributions are very welcome! Please feel free to open an issue or pull request if you find a bug or think there is a better way to solve one of the problems solved above.