Memoized fibbonacci better

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-04-24 23:51:23 +00:00
parent 1d9958f2e5
commit a054c1673e
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ func TestMemoizedFib(t *testing.T) {
mem[n] = result mem[n] = result
return result return result
} }
t.Log(Fib(40))
} }
func TestThunkFib(t *testing.T) { func TestThunkFib(t *testing.T) {