Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/apache/groovy
/ ack
Method
ack
benchmark/bench/recursive.java:26–31 ·
view source on GitHub ↗
(int m, int n)
Source
from the content-addressed store, hash-verified
24
}
25
26
public
static
int
ack(
int
m,
int
n)
27
{
28
if
(m == 0)
return
n + 1;
29
if
(n == 0)
return
ack(m - 1, 1);
30
return
ack(m - 1, ack(m, n - 1));
31
}
32
33
public
static
int
fib(
int
n)
34
{
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected