6a38600ce8
Change-Id: I484b11069286ea2277e9e158fa5c3bd34f84c89e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3464 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
9 lines
153 B
Text
9 lines
153 B
Text
fun fib(n) {
|
|
if (n < 2) return n;
|
|
return fib(n - 1) + fib(n - 2);
|
|
}
|
|
|
|
var before = clock();
|
|
print fib(40);
|
|
var after = clock();
|
|
print after - before;
|