2024-12-08 19:37:39 +03:00
parent a54b5b8996
commit 656b5c6eb5
4 changed files with 125 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { describe, it, expect } from "vitest";
import { maxArea } from "./maxArea.ts";
describe("maxArea", () => {
it("[1,8,6,2,5,4,8,3,7] => 49", () => {
expect(maxArea([1, 8, 6, 2, 5, 4, 8, 3, 7])).toBe(49);
});
it("[1,1] => 1", () => {
expect(maxArea([1, 1])).toBe(1);
});
});