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.

Leave a Reply

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