Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
9
Task/Ackermann-function/Delphi/ackermann-function.pas
Normal file
9
Task/Ackermann-function/Delphi/ackermann-function.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function Ackermann(m,n:Int64):Int64;
|
||||
begin
|
||||
if m = 0 then
|
||||
Result := n + 1
|
||||
else if n = 0 then
|
||||
Result := Ackermann(m-1, 1)
|
||||
else
|
||||
Result := Ackermann(m-1, Ackermann(m, n - 1));
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue