Merge pull request #1123 from monaka/pr-add-fib39-to-benchmark

Add fib39.rb to benchmark/
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-03-31 19:47:47 -07:00
+8
View File
@@ -0,0 +1,8 @@
# Fib 39
def fib n
return n if n < 2
fib(n-2) + fib(n-1)
end
puts fib(39)