1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-10-29 22:17:23 +01:00
programming-challenges/challenges/fibonacci
2023-07-02 17:28:54 +02:00
..
solutions fix: update author - Théo LUDWIG 2023-07-02 17:28:54 +02:00
test/1 feat: rewrite programming-challenges CLI (#3) 2021-06-09 20:31:45 +02:00
README.md fix: update author - Théo LUDWIG 2023-07-02 17:28:54 +02:00

fibonacci

Created by @theoludwig on 5 July 2020.

Instructions

The function should return an array of fibonacci numbers. The function takes a number as an argument to decide how many number of elements to produce.

Note: The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ... Each subsequent number is the sum of the previous two.

Examples

See the test folder for examples of input/output.