chore(i18n,curriculum): processed translations (#43390)

This commit is contained in:
camperbot
2021-09-07 07:47:37 -07:00
committed by GitHub
parent fa6d3f4cf2
commit ec4821a707
67 changed files with 662 additions and 654 deletions

View File

@ -1,6 +1,6 @@
---
id: 5a23c84252665b21eecc801c
title: Spiral matrix
title: Matriz espiral
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:
Produza um array espiral. Um *array espiral* é um arranjo quadrado dos primeiros N<sup>2</sup> números naturais, onde os números aumentam sequencialmente à medida que você vai visitando as arestas do array em uma espiral para dentro. Por exemplo, dado **5**, produza este 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` deve ser uma função.
```js
assert(typeof spiralArray == 'function');
```
`spiralArray(3)` should return an array.
`spiralArray(3)` deve retornar um array.
```js
assert(Array.isArray(spiralArray(3)));
```
`spiralArray(3)` should return `[[0, 1, 2],[7, 8, 3],[6, 5, 4]]`.
`spiralArray(3)` deve retornar `[[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)` deve retornar `[[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)` deve retornar `[[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), [