-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fibonacci sequence starts from zero
Correct fibonacci sequence is [0, 1, 1, 2, 3, 5, 8, ..] and not [1, 1, 2, 3, 5, 8, ..]. In the form of function calls, to get Nth element of the Fibonacci sequence, it should look like this: F(0) = 0 F(1) = 1 F(2) = 1 F(3) = 2
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters