Here is the problem is known as Sum All Odd Fibonacci Numbers.
I have a problem with a test case.
10because all odd Fibonacci numbers less than or equal to
10are 1, 1, 3, and 5.
sumFibs(4)should return 5 ?
All odd Fibonacci numbers less than or equal to 4 are just 1 and 1.
So here, my expectation is
sumFibs(4)should return 2 but it’s saying 5.
Can you please help me to figure out what’s going on?