Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Container with Most Water
Bookmark
Brute Force
Two Pointers
Input
Example 1
Equal heights
Valley shape
Custom
heights
=
[1, 8, 6, 2, 5, 4, 8, 3, 7]
algo
master
.
io
Step:
Start: measure every pair of walls
0 / 82
Input
Example 1
Equal heights
Valley shape
Custom
heights
=
[1, 8, 6, 2, 5, 4, 8, 3, 7]
0 / 82
algo
master
.
io
Step:
Start: measure every pair of walls