Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.26 KB

File metadata and controls

15 lines (10 loc) · 1.26 KB

Fibonacci Sequence medium

by windliang @wind-liang

Take the Challenge

Implement a generic Fibonacci<T> takes an number T and returns it's corresponding Fibonacci number.

The sequence starts: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...

For example

type Result1 = Fibonacci<3> // 2
type Result2 = Fibonacci<8> // 21

Back Share your Solutions Check out Solutions