Skip to content

Commit abcbc54

Browse files
refactor 11
1 parent 60b2f82 commit abcbc54

File tree

1 file changed

+0
-11
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-11
lines changed

src/main/java/com/fishercoder/solutions/_11.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 11. Container With Most Water
5-
*
6-
* Given n non-negative integers a1, a2, ..., an,
7-
* where each represents a point at coordinate (i, ai).
8-
* n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0).
9-
* Find two lines, which together with x-axis forms a container, such that the container contains the most water.
10-
11-
Note: You may not slant the container and n is at least 2.
12-
*/
133
public class _11 {
14-
154
public static class Solution1 {
165
public int maxArea(int[] height) {
176
int max = 0;

0 commit comments

Comments
 (0)