Commit 35ced975 authored by Masaki Muranaka's avatar Masaki Muranaka

Add fib39.rb to benchmark/

parent cc6e62ef
# Fib 39
def fib n
return n if n < 2
fib(n-2) + fib(n-1)
end
puts fib(39)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment