Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created October 5, 2018 01:55
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 goofmint/5879b582a59d30248dcd0eb904cd3faa to your computer and use it in GitHub Desktop.
Save goofmint/5879b582a59d30248dcd0eb904cd3faa to your computer and use it in GitHub Desktop.
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