Skip to content

Commit 0a2d908

Browse files
committed
update
1 parent 1546c6e commit 0a2d908

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

0011.container-with-most-water/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
```discription
44
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.
5-
```
5+
```
6+
7+
> 求数组之间最大面积,从数组两端往中间计算

0011.container-with-most-water/run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
func TestMaxArea(t *testing.T) {
9-
height := []int{10, 0, 2}
9+
height := []int{10, 10, 2}
1010
a := maxArea(height)
1111
fmt.Println(a)
1212
t.Logf("value:%v", a)

0 commit comments

Comments
 (0)