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: 594810f028c0303b75339ad2
title: Vector cross product
title: Prodotto vettoriale
challengeType: 5
forumTopicId: 302342
dashedName: vector-cross-product
@ -8,27 +8,27 @@ dashedName: vector-cross-product
# --description--
A vector is defined as having three dimensions as being represented by an ordered collection of three numbers: (X, Y, Z).
Un vettore è definito come avente tre dimensioni e può essere rappresentato da una raccolta ordinata di tre numeri: (X, Y, Z).
# --instructions--
Write a function that takes two vectors (arrays) as input and computes their cross product. Your function should return `null` on invalid inputs such as vectors of different lengths.
Scrivi una funzione che prende due vettori (arrays) come input e calcola il loro prodotto vettoriale. La tua funzione dovrebbe restituire `null` su input non validi, come vettori di diverse lunghezze.
# --hints--
`crossProduct` should be a function.
`crossProduct` dovrebbe essere una funzione.
```js
assert.equal(typeof crossProduct, 'function');
```
`crossProduct()` should return null.
`crossProduct()` dovrebbe restituire null.
```js
assert.equal(crossProduct(), null);
```
`crossProduct([1, 2, 3], [4, 5, 6])` should return `[-3, 6, -3]`.
`crossProduct([1, 2, 3], [4, 5, 6])` dovrebbe restituire `[-3, 6, -3]`.
```js
assert.deepEqual(res12, exp12);