fix(curriculum): fix Fibonacci sequence text (#49452)

Fixed sum-all-odd-fibonacci-numbers.md text
This commit is contained in:
Santiago Pereyra Vázquez
2023-02-21 01:47:23 -06:00
committed by GitHub
parent 181e108418
commit f25c89fa68

View File

@@ -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.