Skip to content

Implementation examples for fibonacci numbers using big.Int's and memoization.

License

Notifications You must be signed in to change notification settings

massimo-marino/go-fibonacci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibonacci

Files: fibonacci.go, memoFib.go, fibService.go, fibonacci_test.go

This is an implementation of computing Fibonacci numbers using big.Int's in go.

Fibonacci Numbers: The Easy Way

File: fibonacci.go

This is the easy way of implementing a bottom-up dynamic programming algorithm.

Fibonacci Numbers: A memoization implementation

File: memoFib.go

Compute Fibonacci numbers using memoization. The only limits are your memory, and your time if you dare to ask a huge fib(n) for a very high value of n :-)

Fibonacci Numbers: A fib service using memoization

File: fibService.go

A back-end service that runs forever using memoization.

The Tests

File: fibonacci_test.go

Tests for the fib functions.

Releases

No releases published

Packages

No packages published

Languages