[HAI] week3 max area
https://leetcode.com/problems/container-with-most-water/description/?source=submission-ac
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user