Created
October 5, 2018 01:55
-
-
Save goofmint/5879b582a59d30248dcd0eb904cd3faa 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
pub fn f(n:i32) -> i32 { | |
if n <= 1 { | |
1 | |
} else { | |
f(n - 1) + f(n - 2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment