Weekly Ruby Quiz
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.rvmrc
Gemfile
Gemfile.lock
README
quiz.rb

README

This week's quiz is to locate all of the Fridays the 13th within an arbitrary
date range. Chris Johnson suggests that bonus points be awarded for calculating
the average time difference between successive Fridays the 13th. There are any
number of other statistics that could be derived (e.g., avg number of Fridays
the 13th per year) if you feel up to it.


To run the quiz:

$ bundle install

$ rspec quiz.rb