Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created June 28, 2011 15:11
Show Gist options
  • Save hosiawak/1051350 to your computer and use it in GitHub Desktop.
Save hosiawak/1051350 to your computer and use it in GitHub Desktop.
def fib(i, c = 0, n = 1)
if i == 0
c
else
recur(i - 1, n, c + n)
end
end
puts fib(50000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment