MCPcopy Index your code
hub / github.com/apache/groovy / fib

Method fib

benchmark/bench/recursive.java:33–37  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

31 }
32
33 public static int fib(int n)
34 {
35 if (n < 2) return 1;
36 return fib(n - 2) + fib(n - 1);
37 }
38
39 public static double fib(double n)
40 {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected