Last active
January 14, 2018 12:15
-
-
Save theWhiteFox/72e51170571878cfd76bc98e7c6be7eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shorter recursive starts at 1 | |
function fibRecursive(n) { | |
if(n <= 1) return 1; | |
return fibRecursive(n - 2) + fibRecursive(n - 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment