ruby-jokes / job_interview

A gem for job interview type problems
http://ruby-jokes.github.com/job_interview
GNU General Public License v3.0
427 stars 50 forks source link

added a fibonacci generator which uses matrices #7

Closed intolerable closed 12 years ago

intolerable commented 12 years ago
fib(10, :matrix)
 => [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]