Crates.io | birgitte_fibonacci |
lib.rs | birgitte_fibonacci |
version | 0.2.0 |
source | src |
created_at | 2023-01-06 10:17:15.278496 |
updated_at | 2023-01-06 10:46:02.499497 |
description | A library for calculating fibonacci |
homepage | |
repository | |
max_upload_size | |
id | 752223 |
size | 4,786 |
birgitte_fibonacci
has functions that calculate the fibonacci number of a given number.
fib
Caclculates fibonacci with custom memoization
Supports: u8, u16, u32, u64, u128, usize
assert_eq!(fib::<usize>(30), 832040);
fib_memo
Caclculates fibonacci with memoizate
Supports: usize
assert_eq!(fib_memo(30), 832040);
If the number that is created is to big for the datastructure