Memoized fibbonacci better
Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
parent
1d9958f2e5
commit
a054c1673e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue