new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
3
Task/Ackermann-function/Python/ackermann-function-1.py
Normal file
3
Task/Ackermann-function/Python/ackermann-function-1.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def ack1(M, N):
|
||||
return (N + 1) if M == 0 else (
|
||||
ack1(M-1, 1) if N == 0 else ack1(M-1, ack1(M, N-1)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue