challenge ctci-random-note

This commit is contained in:
Lorenzo Iovino 2024-01-25 18:44:05 +01:00
parent 3b7d0b4574
commit 4ef3e01ab5
5 changed files with 61 additions and 2 deletions

View file

@ -2,7 +2,7 @@ import {describe, it, skip} from 'node:test';
import * as assert from "node:assert";
import {findHighestHourglassSum} from "./2d-array";
import {Matrix} from "./matrix";
describe("2D Array", () => {
describe("2D Array", () => {
describe("findHighestHourglassSum", () => {
it("should return 0 if the matrix is empty", () => {
assert.equal(findHighestHourglassSum(new Matrix([])), 0);