+ 1

Project Euler Fibonacci Sequence?

So I solved the second Project Euler challenge, but is this the best way to do this? I can't help but feel like there's a better way to solve it. https://code.sololearn.com/c35U884Tc4Nc/?ref=app

15th Mar 2019, 1:27 PM
Daniel Cooper
Daniel Cooper - avatar
2 odpowiedzi
+ 3
You can also generate the fibonacci sequence using Phi (Φ), might want to put some research into that.
15th Mar 2019, 2:19 PM
Dennis
Dennis - avatar
+ 2
Three variables + a while loop instead of a for loop for less iterations. Looking forward to even better solutions. https://code.sololearn.com/cg8cngFW77mm/?ref=app
15th Mar 2019, 2:04 PM
Shadow
Shadow - avatar