Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -0,0 +1,14 @@
import ballerina/io;
function ackermann(int m, int n) returns int {
if m == 0 { return n + 1; }
if n == 0 { return ackermann(m - 1, 1); }
return ackermann(m - 1, ackermann(m, n - 1));
}
public function main() {
int[][] pairs = [ [1, 3], [2, 3], [3, 3], [1, 5], [2, 5], [3, 5] ];
foreach var p in pairs {
io:println(`A[${p[0]}, ${p[1]}] = ${ackermann(p[0], p[1])}`);
}
}