We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
good mate
in python you can throw in a generator is fast so you dont have to generate the odd numbers
In c++ you can make with iterators
It works with coroutines tho is not o good idea.
Project Euler #2: Even Fibonacci numbers
You are viewing a single comment's thread. Return to all comments →
This question actually has an easy logic. Lets the fibonacci series:1 1 2 3 5 8 13 21 34 55 89 144
Now separate the even numbers :- 2 8 34 144
GENERAL FORM
good one
This is very similar to what I have done, and should be the most efficient. Not the one posted in the editorial!
Where is the editorial?
good mate in python you can throw in a generator is fast so you dont have to generate the odd numbers In c++ you can make with iterators It works with coroutines tho is not o good idea.
The most efficient solution
Passed all cases.....nice logic
C++