fix(curriculum): clean-up Project Euler 361-380 (#43002)

* fix: clean-up Project Euler 361-380

* fix: improve wording

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

* fix: remove unnecessary paragraph

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
gikf
2021-07-29 21:48:17 +02:00
committed by GitHub
parent 1af6e7aa5a
commit 7d9496e52c
20 changed files with 249 additions and 183 deletions

View File

@ -8,24 +8,24 @@ dashedName: problem-371-licence-plates
# --description--
Oregon licence plates consist of three letters followed by a three digit number (each digit can be from \[0..9]).
Oregon licence plates consist of three letters followed by a three digit number (each digit can be from [0...9]).
While driving to work Seth plays the following game:
Whenever the numbers of two licence plates seen on his trip add to 1000 that's a win.
E.g. MIC-012 and HAN-988 is a win and RYU-500 and SET-500 too. (as long as he sees them in the same trip).
E.g. `MIC-012` and `HAN-988` is a win and `RYU-500` and `SET-500` too. (as long as he sees them in the same trip).
Find the expected number of plates he needs to see for a win. Give your answer rounded to 8 decimal places behind the decimal point.
Note: We assume that each licence plate seen is equally likely to have any three digit number on it.
**Note:** We assume that each licence plate seen is equally likely to have any three digit number on it.
# --hints--
`euler371()` should return 40.66368097.
`licensePlates()` should return `40.66368097`.
```js
assert.strictEqual(euler371(), 40.66368097);
assert.strictEqual(licensePlates(), 40.66368097);
```
# --seed--
@ -33,12 +33,12 @@ assert.strictEqual(euler371(), 40.66368097);
## --seed-contents--
```js
function euler371() {
function licensePlates() {
return true;
}
euler371();
licensePlates();
```
# --solutions--