8000 GitHub - cvigueras/fibonacci-kata: It is an infinite sequence of natural numbers in TDD.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cvigueras/fibonacci-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fibonacci-kata

It is an infinite sequence of natural numbers

  • Fibonacci sequence is defined as:
    • fib(0) = 0
    • fib(1) = 1
    • fib(n) = fib(n-1) + fib(n-2) for n>=2

Write a function to generate the Fibonacci number for the nth position.

Example: int Fibonacci(int n)

The first Fibonacci numbers in the sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34.

About

It is an infinite sequence of natural numbers in TDD.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0