>_
max_area.java
Java 25.0
Not run yet

+ 9 hidden

Input
height = [2, 7, 4, 1, 6, 3]
Expected
18

The walls 7 (index 1) and 6 (index 4) are 3 apart and the shorter one is 6, so they hold 3 × 6 = 18.