Created
August 10, 2020 10:07
-
-
Save 0xkohe/17818f61bcfe287eb2709466eaccbf7f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func fib(num int) int { | |
if num <= 1 { | |
return num | |
} | |
return fib(num-2) + fib(num-1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment