pub fn kernel_recursion(n: u8) -> FibonacciValue
Expand description
This is the worest solution This solution will take up too much stack and slow
ยงExample
use fibonacci_sequence::lib_fibonacci;
let n:u8 = 2;
let result = lib_fibonacci::kernel_recursion(n);
assert_eq!(result.fib_value,2);