Sha256: 656b420e20261ae2713b67cc4e9543dde1f6ebed50dc321a13cc023c30c9511a

Contents?: true

Size: 80 Bytes

Versions: 11

Compression:

Stored size: 80 Bytes

Contents

# Fib 39

def fib n
  return n if n < 2
  fib(n-2) + fib(n-1)
end

puts fib(39)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webruby-0.9.3 modules/mruby/benchmark/fib39.rb
webruby-0.9.2 modules/mruby/benchmark/fib39.rb
webruby-0.9.1 modules/mruby/benchmark/fib39.rb
webruby-0.2.7 modules/mruby/benchmark/fib39.rb
webruby-0.2.5 modules/mruby/benchmark/fib39.rb
webruby-0.2.4 modules/mruby/benchmark/fib39.rb
webruby-0.2.2 modules/mruby/benchmark/fib39.rb
webruby-0.2.1 modules/mruby/benchmark/fib39.rb
webruby-0.1.2 modules/mruby/benchmark/fib39.rb
webruby-0.1.1 modules/mruby/benchmark/fib39.rb
webruby-0.1.0 modules/mruby/benchmark/fib39.rb