(n: usize)
| 5 | /// classic impl |
| 6 | #[allow(unused)] |
| 7 | pub fn fib_classic_recursive(n: usize) -> usize { |
| 8 | match n { |
| 9 | 0 => 0, |
| 10 | 1 | 2 => 1, |
| 11 | _ => fib_classic_recursive(n - 1) + fib_classic_recursive(n - 2), |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | thread_local!(static MEMO: RefCell<Vec<usize>> = RefCell::new(vec![0; 1000])); |
| 16 |
nothing calls this directly
no outgoing calls
no test coverage detected