Closed maxbarsukov closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions!
I would like to add a few ways to calculate the Fibonacci numbers, for example:
I have a couple of ways to do this, and so I would like some advice.
1. So, the first way is to use the strategy pattern, for example
with file structure like:
2. The second way is to make a Fibonacci module with different ways as functions and divide it into several files with this structure:
where
Well, I have given several ways, but I myself tend to the third, since most of the algorithms are designed in this way. But, on the other hand, it could be a starting point for refactoring the project structure.