Skip to content

Latest commit

 

History

History

fibonacci

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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