Swift Fun Algorithms #6: Fibonacci Sequence

Profile Picture
Published on May 25, 2016🌏 Public

Lets talk about the very famous Fibonacci number sequence today and how to implement a function that returns this sequence in an array. We'll first look at how to do this inside of a standard for loop. Secondly we'll use recursion to implement this same function but with two additional parameters. Full source code: http://letsbuildthatapp.com/2016/05/2... Follow me on Twitter: https://twitter.com/buildthatapp