Skip to content

Instantly share code, notes, and snippets.

@franzejr
Last active November 2, 2015 19:29
Show Gist options
  • Select an option

  • Save franzejr/0bd99cf700dbe74fec4a to your computer and use it in GitHub Desktop.

Select an option

Save franzejr/0bd99cf700dbe74fec4a to your computer and use it in GitHub Desktop.
fibonacci = Hash.new{ |numbers,index|
numbers[index] = fibonacci[index - 2] + fibonacci[index - 1]
}.update(0 => 0, 1 => 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment