Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Ackermann-function/Dart/ackermann-function.dart
Normal file
13
Task/Ackermann-function/Dart/ackermann-function.dart
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
int A(int m, int n) => m==0 ? n+1 : n==0 ? A(m-1,1) : A(m-1,A(m,n-1));
|
||||
|
||||
main() {
|
||||
print(A(0,0));
|
||||
print(A(1,0));
|
||||
print(A(0,1));
|
||||
print(A(2,2));
|
||||
print(A(2,3));
|
||||
print(A(3,3));
|
||||
print(A(3,4));
|
||||
print(A(3,5));
|
||||
print(A(4,0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue