Cracking the Coding Interview 6th Ed. Solutions (Ruby)
These are solutions to the questions to Cracking the Coding Interview 6th edition in Ruby.
All solutions live in the /lib
directory.
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 install
to install all dependencies.rspec
command to run all tests won't work as intended.rspec spec/ch01/1.01_spec.rb
to run tests for specific problems only.