mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-13 16:04:36 -04:00
fix(curriculum): fix Fibonacci sequence text (#49452)
Fixed sum-all-odd-fibonacci-numbers.md text
This commit is contained in:
committed by
GitHub
parent
181e108418
commit
f25c89fa68
@@ -10,7 +10,7 @@ dashedName: sum-all-odd-fibonacci-numbers
|
||||
|
||||
Given a positive integer `num`, return the sum of all odd Fibonacci numbers that are less than or equal to `num`.
|
||||
|
||||
The first two numbers in the Fibonacci sequence are 1 and 1. Every additional number in the sequence is the sum of the two previous numbers. The first six numbers of the Fibonacci sequence are 1, 1, 2, 3, 5 and 8.
|
||||
The first two numbers in the Fibonacci sequence are 0 and 1. Every additional number in the sequence is the sum of the two previous numbers. The first seven numbers of the Fibonacci sequence are 0, 1, 1, 2, 3, 5 and 8.
|
||||
|
||||
For example, `sumFibs(10)` should return `10` because all odd Fibonacci numbers less than or equal to `10` are 1, 1, 3, and 5.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user