Swift Fun Algorithms #3: Factorials & Recursion

Profile Picture
- Published on May 9, 2016馃審 Public

Today's algorithm will be the relatively simple function known as the Factorial. I'm sure most of you guys know how a factorial works already. Thus lets go ahead and implement a simple for loop style factorial function. We will then move on to implementing the code using recursion! Trust me its a lot of fun. Source code: http://letsbuildthatapp.com/2016/05/0... Follow me on Twitter: https://twitter.com/buildthatapp