a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
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;
|