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

Method Ack

benchmark/bench/ackermann.java:9–12  ·  view source on GitHub ↗
(int m, int n)

Source from the content-addressed store, hash-verified

7 System.out.println("Ack(3," + num + "): " + Ack(3, num));
8 }
9 public static int Ack(int m, int n) {
10 return (m == 0) ? (n + 1) : ((n == 0) ? Ack(m-1, 1) :
11 Ack(m-1, Ack(m, n - 1)));
12 }
13}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected