CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
8
Task/Ackermann-function/Clay/ackermann-function.clay
Normal file
8
Task/Ackermann-function/Clay/ackermann-function.clay
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
ackermann(m, n) {
|
||||
if(m == 0)
|
||||
return n + 1;
|
||||
if(n == 0)
|
||||
return ackermann(m - 1, 1);
|
||||
|
||||
return ackermann(m - 1, ackermann(m, n - 1));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue