Thread: 68k details
View Single Post
Old 12 December 2018, 00:37   #953
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,475
Quote:
Originally Posted by alkis View Post
code 94, final exe 132
Much better.

If you only look at the formula you see that at step n you need to sum n-1 to n-2.
But you have to actually think about what does it represent the Fibonacci sequence: a recurrence relation.
So if you use n-2 as the current n..
ross is offline  
 
Page generated in 0.04836 seconds with 11 queries