DEV Community

Discussion on: Fibonacci: Recursion vs Iteration

Collapse
 
awwsmm profile image
Andrew (he/him)

The best way to solve this is to point out the relationship between the nth Fibonacci number and the golden ratio. Saves a lot of calculations.