Hackerrank – Project Euler+ #002 – Even Fibonacci numbers

Hackerrank – Problem description

The problem description – Hackerrank.

Solution

We will calculate Fibonacci numbers sequence using known algorithm. If the next number is even, add it to the result sum. We end up calculations when the next Fibonacci number is greater than upper number constraint.

I created solution in:

All solutions are also available on my GitHub profile.

Ruby

Leave a Reply

Your email address will not be published. Required fields are marked *