Solutions to TopCoder Problems in Ruby