danielecook
7/27/2016 - 5:43 PM

fibonnaci R

fibonnaci R

fib <- function(n) {
  if (n < 2) return(1)
  fib(n - 2) + fib(n - 1)
}