diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-cross-product.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-cross-product.english.md index cca0c897ad..d00f76238b 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-cross-product.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-cross-product.english.md @@ -6,20 +6,12 @@ challengeType: 5 ## Description
-A vector is defined as having three dimensions as being represented by an ordered collection of three numbers:   (X, Y, Z). -

-Task: - - Write a function that takes two vectors (arrays) as input and computes their cross product. - -Your function should return null on -invalid inputs (ie vectors of different lengths). -

+A vector is defined as having three dimensions as being represented by an ordered collection of three numbers: (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.
## Tests @@ -44,7 +36,7 @@ tests:
```js -function crossProduct() { +function crossProduct(a, b) { // Good luck! } ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-dot-product.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-dot-product.english.md index fa6782a9b4..500e4f977f 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-dot-product.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/vector-dot-product.english.md @@ -6,22 +6,12 @@ challengeType: 5 ## Description
-

-A vector is defined as having three dimensions as being represented by an ordered collection of three numbers:   (X, Y, Z). -

-

-Task: - - Write a function that takes any numbers of vectors (arrays) as input and computes their dot product. - -Your function should return null on -invalid inputs (ie vectors of different lengths). -

+A vector is defined as having three dimensions as being represented by an ordered collection of three numbers: (X, Y, Z).
## Instructions
- +Write a function that takes any numbers of vectors (arrays) as input and computes their dot product. Your function should return null on invalid inputs such as vectors of different lengths.
## Tests @@ -52,7 +42,7 @@ tests:
```js -function dotProduct() { +function dotProduct(...vectors) { // Good luck! } ```