Created
October 16, 2016 22:40
-
-
Save jcdavison/2146f7095cd0c2a50dd1678ee11c8f2c 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
def recursive_fib(n) | |
# code here | |
end | |
def iterative_fib(n) | |
# more code here | |
end | |
recursive_fib(5) == ? # a lightweight 'spec'... | |
# some discussion on performance differences between the two |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment