Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.rs

Created Oct 5, 2018
Embed
What would you like to do?
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