Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bell-kevin/fibonacci-tribonacci-and-friends
If you have completed the Tribonacci sequence kata, you would know by now that mister Fibonacci has at least a bigger brother. If not, give it a quick look to get how things work. Well, time to expand the family a little more: think of a Quadribonacci starting with a signature of 4 elements and each following element is the sum of the 4 previous, a Pentabonacci (well Cinquebonacci would probably sound a bit more italian, but it would also sound really awful) with a signature of 5 elements and each following element is the sum of the 5 previous, and so on. Well, guess what? You have to build a Xbonacci function that takes a signature of X elements - and remember each next element is the sum of the last X elements - and returns the first n elements of the so seeded sequence.
https://github.com/bell-kevin/fibonacci-tribonacci-and-friends
code-wars code-wars-solution
Last synced: about 2 months ago
JSON representation
If you have completed the Tribonacci sequence kata, you would know by now that mister Fibonacci has at least a bigger brother. If not, give it a quick look to get how things work. Well, time to expand the family a little more: think of a Quadribonacci starting with a signature of 4 elements and each following element is the sum of the 4 previous, a Pentabonacci (well Cinquebonacci would probably sound a bit more italian, but it would also sound really awful) with a signature of 5 elements and each following element is the sum of the 5 previous, and so on. Well, guess what? You have to build a Xbonacci function that takes a signature of X elements - and remember each next element is the sum of the last X elements - and returns the first n elements of the so seeded sequence.
- Host: GitHub
- URL: https://github.com/bell-kevin/fibonacci-tribonacci-and-friends
- Owner: bell-kevin
- License: gpl-3.0
- Created: 2022-06-28T01:57:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T22:44:14.000Z (over 2 years ago)
- Last Synced: 2024-05-02T04:16:00.007Z (9 months ago)
- Topics: code-wars, code-wars-solution
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0