Skip to content

question: maxGap

question: maxGap #412

Triggered via push March 11, 2024 11:04
Status Failure
Total duration 42s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
src/2024/343-maxGap/maxGap.test.ts > #maxGap > returns 3 for the array [3, 6, 9, 1, 2]: src/2024/343-maxGap/maxGap.ts#L18
TypeError: arr.toSorted is not a function ❯ Module.maxGap src/2024/343-maxGap/maxGap.ts:18:5 ❯ src/2024/343-maxGap/maxGap.test.ts:5:10
src/2024/343-maxGap/maxGap.test.ts > #maxGap > returns the difference between two elements for an array with exactly two elements: src/2024/343-maxGap/maxGap.ts#L18
TypeError: arr.toSorted is not a function ❯ Module.maxGap src/2024/343-maxGap/maxGap.ts:18:5 ❯ src/2024/343-maxGap/maxGap.test.ts:17:10
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.