Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.4 Iterators has a flawed Fibonacci implementation #1240

Closed
oteinone opened this issue Aug 8, 2019 · 0 comments · Fixed by #1241
Closed

16.4 Iterators has a flawed Fibonacci implementation #1240

oteinone opened this issue Aug 8, 2019 · 0 comments · Fixed by #1241

Comments

@oteinone
Copy link

oteinone commented Aug 8, 2019

The iterator produces the following output

The first four terms of the Fibonacci sequence are: 
> 1
> 2
> 3
> 5

Usually Fibonacci sequence is considered to start [1,1,2,3] or sometimes [0,1,1,2] but not [1,2,3,5].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant