Skip to content

Files

Latest commit

2e108b8 · Jul 20, 2023

History

History
This branch is 7 commits ahead of, 10 commits behind igorwojda/kotlin-coding-challenges:main.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 20, 2023
Feb 7, 2023
Feb 7, 2023

Fibonacci

Instructions

Print out the n-th entry in the fibonacciSequence series. The fibonacci series is an ordering of numbers where each number is the sum of the preceding two. For example, the sequence [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] forms the first ten entries of the fibonacci sequence.

Example

fibonacci(1) // 1

fibonacci(2) // 1

fibonacci(3) // 2

fibonacci(4) // 3