656b5c6eb5
https://leetcode.com/problems/container-with-most-water/description/?source=submission-ac
14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
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);
|
|
});
|
|
});
|