Unstub

Walk a sequenceEasy

Sum of Even Fibonacci Numbers

The Fibonacci numbers here start 1, 2, 3, 5, 8, each the sum of the two before it. Return the sum of the even ones that are no larger than limit.

Aim for O(log n) time, O(1) spaceInspired by a classic maths puzzle ↗