-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Shouldn't line 4 should read while(f[0] <= 4e6) ?
Your code yields the right answer for an input of 4 million, but consider the fibonacci numbers not exceeding 8.
Even fibonaccis would be 2 and 8, resulting in a sum of 10. Your code would log 2 as the answer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels