mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): remove before/after-user-code from project euler challenges 1-4 (#66437)
This commit is contained in:
parent
9a21bd76cd
commit
6cb7104380
@ -22,29 +22,7 @@ The minimal path sum in the 5 by 5 matrix below, by starting in any cell in the
|
||||
|
||||
Find the minimal path sum from the left column to the right column in `matrix`, a 2D array representing a matrix. The maximum matrix size used in tests will be 80 by 80.
|
||||
|
||||
# --hints--
|
||||
|
||||
`pathSumThreeWays(testMatrix1)` should return a number.
|
||||
|
||||
```js
|
||||
assert(typeof pathSumThreeWays(_testMatrix1) === 'number');
|
||||
```
|
||||
|
||||
`pathSumThreeWays(testMatrix1)` should return `994`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(pathSumThreeWays(_testMatrix1), 994);
|
||||
```
|
||||
|
||||
`pathSumThreeWays(testMatrix2)` should return `260324`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(pathSumThreeWays(_testMatrix2), 260324);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --after-user-code--
|
||||
# --before-each--
|
||||
|
||||
```js
|
||||
const _testMatrix1 = [
|
||||
@ -138,6 +116,28 @@ const _testMatrix2 = [
|
||||
];
|
||||
```
|
||||
|
||||
# --hints--
|
||||
|
||||
`pathSumThreeWays(testMatrix1)` should return a number.
|
||||
|
||||
```js
|
||||
assert(typeof pathSumThreeWays(_testMatrix1) === 'number');
|
||||
```
|
||||
|
||||
`pathSumThreeWays(testMatrix1)` should return `994`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(pathSumThreeWays(_testMatrix1), 994);
|
||||
```
|
||||
|
||||
`pathSumThreeWays(testMatrix2)` should return `260324`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(pathSumThreeWays(_testMatrix2), 260324);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user