DEV Community

Discussion on: Fibonacci in Every Language

 
renegadecoder94 profile image
Jeremy Grifski • Edited

Yeah, it’s not too hard to put together an inefficient solution using recursion (since that’s how the equation is written). If you’re clever, you might save computations in a list. Or, maybe you write an iterative solution which only needs two variables at any give time.

That said, an equation like this is next level. Haha