A quick comparison of Fibonacci functions

A really common Interview question is about Fibonacci functions.

In this short gist I compare two simple ways of doing this. This is mainly to highlight the power of generators. For those of us who want to see a good video on this – I recommend this video by the talented, charming James Powell.


Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Leave a Reply

Your email address will not be published. Required fields are marked *