8000 GitHub - lyndychivs/Fibonacci at v1.0.7
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lyndychivs/Fibonacci

Repository files navigation

lyndychivs.Fibonacci

The Fibonacci Sequence as image

The Fibonacci Sequence in C# using recursion and iteration returning BigInteger values.

Tests & Examples

All Unit Tests can be found under the Fibonacci.Tests namesapce.

One Interface exists:

public interface IFibonacci
{
    BigInteger GetFibonacci(int n);

    List<BigInteger> GetFibonacciSequence(int length);
}

There are two concrete implementations of this Interface.

  1. FibonacciIterative
var fibonacci = new FibonacciIterative();

BigInteger result = fibonacci.GetFibonacci(5);

List<BigInteger> sequence = fibonacci.GetFibonacciSequence(3);
  1. FibonacciRecursive
var fibonacci = new FibonacciRecursive();

BigInteger result = fibonacci.GetFibonacci(5);

List<BigInteger> sequence = fibonacci.GetFibonacciSequence(3);

Package

Available on:

About

The Fibonacci Sequence in C#

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors 2

  •  
  •  

Languages

0