Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 425 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 425 Bytes

Fibonacci

Description

Explanation of the Fibonacci sequence you can read here.

NOTE: it's the simplest version of the algorithm and will exceed maximum call stack size in case of large position given (i.e. 50).

Implementation

fibonacci(position) should return a number on given position from Fibonacci sequence.

Example:

fibonacci(9) // 34