mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-17 22:01:24 -04:00
chore(curriculum) Project Euler problems 301–400 to use assert.isString() (#60657)
This commit is contained in:
@@ -25,7 +25,7 @@ Give your answer as a string as a fraction `p/q` in reduced form.
|
||||
`primeFrog()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof primeFrog() === 'string');
|
||||
asset.isString(primeFrog());
|
||||
```
|
||||
|
||||
`primeFrog()` should return the string `199740353/29386561536000`.
|
||||
|
||||
@@ -29,7 +29,7 @@ Find the ${2011}^{\text{th}}$ lexicographic maximix arrangement for eleven carri
|
||||
`maximixArrangements()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof maximixArrangements() === 'string');
|
||||
asset.isString(maximixArrangements());
|
||||
```
|
||||
|
||||
`maximixArrangements()` should return the string `CAGBIHEFJDK`.
|
||||
|
||||
@@ -25,7 +25,7 @@ When giving your answer, use a lowercase e to separate mantissa and exponent. E.
|
||||
`amazingMazes()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof amazingMazes() === 'string');
|
||||
asset.isString(amazingMazes());
|
||||
```
|
||||
|
||||
`amazingMazes()` should return the string `6.3202e25093`.
|
||||
|
||||
@@ -31,7 +31,7 @@ If it happens that the conjecture is false, then the accepted answer to this pro
|
||||
`squarefreeFibonacciNumbers()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof squarefreeFibonacciNumbers() === 'string');
|
||||
asset.isString(squarefreeFibonacciNumbers());
|
||||
```
|
||||
|
||||
`squarefreeFibonacciNumbers()` should return the string `1508395636674243,6.5e27330467`.
|
||||
|
||||
Reference in New Issue
Block a user