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

This commit is contained in:
camperbot
2022-02-19 12:56:08 +05:30
committed by GitHub
parent 8138a07d52
commit ba14990876
134 changed files with 1540 additions and 1511 deletions

View File

@ -1,6 +1,6 @@
---
id: 5a23c84252665b21eecc801c
title: Spiral matrix
title: Matrice a spirale
challengeType: 5
forumTopicId: 302321
dashedName: spiral-matrix
@ -8,7 +8,7 @@ dashedName: spiral-matrix
# --description--
Produce a spiral array. A *spiral array* is a square arrangement of the first N<sup>2</sup> natural numbers, where the numbers increase sequentially as you go around the edges of the array spiraling inwards. For example, given **5**, produce this array:
Produci un array a spirale. Un *array a spirale* è una disposizione quadrata dei primi numeri naturali N<sup>2</sup>, dove i numeri aumentano in sequenza mentre si percorrono i bordi dell'array a spirale verso l'interno. Per esempio, dato **5**, viene prodotto questo array:
<pre>
0 1 2 3 4
@ -20,19 +20,19 @@ Produce a spiral array. A *spiral array* is a square arrangement of the first N<
# --hints--
`spiralArray` should be a function.
`spiralArray` dovrebbe essere una funzione.
```js
assert(typeof spiralArray == 'function');
```
`spiralArray(3)` should return an array.
`spiralArray(3)` dovrebbe restituire un array.
```js
assert(Array.isArray(spiralArray(3)));
```
`spiralArray(3)` should return `[[0, 1, 2],[7, 8, 3],[6, 5, 4]]`.
`spiralArray(3)` dovrebbe restituire `[[0, 1, 2],[7, 8, 3],[6, 5, 4]]`.
```js
assert.deepEqual(spiralArray(3), [
@ -42,7 +42,7 @@ assert.deepEqual(spiralArray(3), [
]);
```
`spiralArray(4)` should return `[[0, 1, 2, 3],[11, 12, 13, 4],[10, 15, 14, 5],[9, 8, 7, 6]]`.
`spiralArray(4)` dovrebbe restituire `[[0, 1, 2, 3],[11, 12, 13, 4],[10, 15, 14, 5],[9, 8, 7, 6]]`.
```js
assert.deepEqual(spiralArray(4), [
@ -53,7 +53,7 @@ assert.deepEqual(spiralArray(4), [
]);
```
`spiralArray(5)` should return `[[0, 1, 2, 3, 4],[15, 16, 17, 18, 5],[14, 23, 24, 19, 6],[13, 22, 21, 20, 7],[12, 11, 10, 9, 8]]`.
`spiralArray(5)` dovrebbe restituire `[[0, 1, 2, 3, 4],[15, 16, 17, 18, 5],[14, 23, 24, 19, 6],[13, 22, 21, 20, 7],[12, 11, 10, 9, 8]]`.
```js
assert.deepEqual(spiralArray(5), [