These are solutions to the questions to Cracking the Coding Interview 6th edition in Ruby.
All solutions live in the
If you are only interested in seeing the solutions in Ruby, ignore the steps below. They pertain to tests written in Rspec to make sure the solution covers various cases and behaves as intended.
To run the tests:
bundle installto install all dependencies.
rspeccommand to run all tests won't work as intended.
rspec spec/ch01/1.01_spec.rbto run tests for specific problems only.