Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 3, 2019 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/458a46446153a51f4b631032a4c9c22e to your computer and use it in GitHub Desktop.
Save parzibyte/458a46446153a51f4b631032a4c9c22e to your computer and use it in GitHub Desktop.
long fibonacciRecursivo(long posicion) {
if (posicion < 2)
return posicion;
return fibonacciRecursivo(posicion - 1) + fibonacciRecursivo(posicion - 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment