chore(i18n,learn): processed translations (#45001)

This commit is contained in:
camperbot
2022-02-04 00:46:32 +05:30
committed by GitHub
parent 0d36c35207
commit f38d19132d
32 changed files with 374 additions and 354 deletions

View File

@ -1,6 +1,6 @@
---
id: 594810f028c0303b75339acf
title: Ackermann function
title: La funzione di Ackermann
challengeType: 5
forumTopicId: 302223
dashedName: ackermann-function
@ -8,45 +8,45 @@ dashedName: ackermann-function
# --description--
The Ackermann function is a classic example of a recursive function, notable especially because it is not a primitive recursive function. It grows very quickly in value, as does the size of its call tree.
La funzione di Ackermann è un esempio classico di una funzione ricorsiva, degna di nota soprattutto perché non è una funzione ricorsiva primitiva. Cresce molto in fretta in valore, come fa anche la dimensione del suo albero di invocazioni.
The Ackermann function is usually defined as follows:
La funzione di Ackermann è usualmente definita come segue:
$A(m, n) = \\begin{cases} n+1 & \\mbox{if } m = 0 \\\\ A(m-1, 1) & \\mbox{if } m > 0 \\mbox{ and } n = 0 \\\\ A(m-1, A(m, n-1)) & \\mbox{if } m > 0 \\mbox{ and } n > 0. \\end{cases}$
Its arguments are never negative and it always terminates.
I suoi argomenti non sono mai negativi e termina sempre.
# --instructions--
Write a function which returns the value of $A(m, n)$. Arbitrary precision is preferred (since the function grows so quickly), but not required.
Scrivi una funzione che restituisce il valore di $A(m, n)$. Precisione arbitraria è preferita (poiché la funzione cresce così rapidamente), ma non è necessaria.
# --hints--
`ack` should be a function.
`ack` dovrebbe essere una funzione.
```js
assert(typeof ack === 'function');
```
`ack(0, 0)` should return 1.
`ack(0, 0)` dovrebbe restituire 1.
```js
assert(ack(0, 0) === 1);
```
`ack(1, 1)` should return 3.
`ack(1, 1)` dovrebbe restituire 3.
```js
assert(ack(1, 1) === 3);
```
`ack(2, 5)` should return 13.
`ack(2, 5)` dovrebbe restituire 13.
```js
assert(ack(2, 5) === 13);
```
`ack(3, 3)` should return 61.
`ack(3, 3)` dovrebbe restituire 61.
```js
assert(ack(3, 3) === 61);