fix(curriculum): remove before/after-user-code from project euler challenges 1-4 (#66437)

This commit is contained in:
Sem Bauke 2026-03-14 14:44:58 +01:00 committed by GitHub
parent 9a21bd76cd
commit 6cb7104380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 57 additions and 57 deletions

View File

@ -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