-
-
Notifications
You must be signed in to change notification settings - Fork 408
Feat: Fibonacci Series #205
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
Feat: Fibonacci Series #205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the ideal API for this is an infinite generator which generates subsequent fibonacci numbers; people can easily stuff that in an array if they want, but they don't need to.
Otherwise mostly fine; I think this should probably replace / be used in the implementation of the first function in https://github.com/TheAlgorithms/TypeScript/blob/master/maths/fibonacci.ts, esp. if it gets turned into a generator: Then you just have to "select" the n-th element from the generator.
@appgurueu |
I think that would be the best solution, yes. |
@Panquesito7 @raklaptudirm anyone review my code |
@appgurueu @Panquesito7 @raklaptudirm I have implemented Fibonacci Series (Math/series) please review my PR