Inspired by this
All the problems are solved in ruby and tested out in rspec.
All the solutions are preseent in lib\file_name.rb
and the tests for those are present in spec\file_name_spec.rb
###To run the tests
- Clone the repo and then run
bundle install
to install rspec.- Then run
rspec spec/
to run the entire test suite.- To run all tests in a specific file run
rspec spec/file_name.rb
- To run a specific test in file run
rspec spec\file_name.rb:<line_number>